summaryrefslogtreecommitdiffstats
path: root/src/xprivate.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2020-02-17 08:24:24 +0100
committerSimon Rettberg2020-02-17 08:24:24 +0100
commit19033eebd821813bc1b1ad54094bfcea673bc0ac (patch)
tree6b3d97d6e3b4af775d60f82fb4d3ef25f9c03cda /src/xprivate.cpp
parentFix xrandr command line for positioning... (diff)
downloadbeamergui-19033eebd821813bc1b1ad54094bfcea673bc0ac.tar.gz
beamergui-19033eebd821813bc1b1ad54094bfcea673bc0ac.tar.xz
beamergui-19033eebd821813bc1b1ad54094bfcea673bc0ac.zip
Add -d to dump all screen geometry
This ignores cloned outputs and overlapping screens. In case of overlapping screens it will remove those screens from the list that cause the least decrease in total screen size (in pixels).
Diffstat (limited to 'src/xprivate.cpp')
-rw-r--r--src/xprivate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xprivate.cpp b/src/xprivate.cpp
index 01f265f..c8a45b2 100644
--- a/src/xprivate.cpp
+++ b/src/xprivate.cpp
@@ -488,7 +488,7 @@ QList<RRMode> XPrivate::getOutputModeForResolution(const XRROutputInfo *output,
}
}
// Sort others descending by dotClock
- qSort(others.begin(), others.end(), [](const XRRModeInfo *a, const XRRModeInfo *b) {
+ qSort(others.begin(), others.end(), [](const XRRModeInfo *a, const XRRModeInfo *b) -> bool {
if ((a->modeFlags & RR_DoubleScan) != (b->modeFlags & RR_DoubleScan))
return (a->modeFlags & RR_DoubleScan) == 0; // Prefer non-interlaced resolutions
return toVertRefresh(a) > toVertRefresh(b);