summaryrefslogtreecommitdiffstats
path: root/src/xprivate.cpp
diff options
context:
space:
mode:
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);