diff options
author | Simon Rettberg | 2020-02-17 08:24:24 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-02-17 08:24:24 +0100 |
commit | 19033eebd821813bc1b1ad54094bfcea673bc0ac (patch) | |
tree | 6b3d97d6e3b4af775d60f82fb4d3ef25f9c03cda /src/xprivate.cpp | |
parent | Fix xrandr command line for positioning... (diff) | |
download | beamergui-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.cpp | 2 |
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); |