summaryrefslogtreecommitdiffstats
path: root/src/xx.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2020-09-17 15:38:22 +0200
committerSimon Rettberg2020-09-17 15:38:22 +0200
commitc639e79a98115b5ca13b7a9b27c237d8f155f342 (patch)
tree7dc9384517630c9a981fb52e257040bd8841e3ff /src/xx.cpp
parentForce-Add resolutions when using --resolutions option (diff)
downloadbeamergui-c639e79a98115b5ca13b7a9b27c237d8f155f342.tar.gz
beamergui-c639e79a98115b5ca13b7a9b27c237d8f155f342.tar.xz
beamergui-c639e79a98115b5ca13b7a9b27c237d8f155f342.zip
Wider accepted refresh range; fix crash bug
Diffstat (limited to 'src/xx.cpp')
-rw-r--r--src/xx.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xx.cpp b/src/xx.cpp
index d4a4608..8aab4ac 100644
--- a/src/xx.cpp
+++ b/src/xx.cpp
@@ -258,7 +258,7 @@ void ScreenSetup::initModes()
QSet<quint32> wanted;
wanted << RES(1280, 720) << RES(1280, 800) << RES(1920, 1080);
for (XRRModeInfo *mode : a->_modeMap) {
- if (toVertRefresh(mode) < 58 || toVertRefresh(mode) > 61)
+ if (toVertRefresh(mode) < 55 || toVertRefresh(mode) > 65)
continue; // Play it safe and consider only those for copying that are 60Hz
if (!wanted.remove(RES(mode->width, mode->height)))
continue; // Is not a wanted resolution
@@ -612,6 +612,7 @@ ConfigBackup ScreenSetup::setCustom(const QList<QPair<QSize, QList<QString>>> &l
if (a->addResolutionToOutput(oi, res)) {
reload = true;
}
+ break;
}
}
}
@@ -633,6 +634,7 @@ ConfigBackup ScreenSetup::setCustom(const QList<QPair<QSize, QList<QString>>> &l
if (mode != nullptr && mode->width > w) {
w = mode->width;
}
+ break;
}
}
x += w;