From: Mikko Rasa Date: Sun, 27 Nov 2022 14:21:30 +0000 (+0200) Subject: Correctly sort inactive monitors on X11 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=27356249e3607c78f5da9823c88703a6f4f7bed1;p=libs%2Fgui.git Correctly sort inactive monitors on X11 --- diff --git a/source/graphics/x11/display.cpp b/source/graphics/x11/display.cpp index 544f958..60c2182 100644 --- a/source/graphics/x11/display.cpp +++ b/source/graphics/x11/display.cpp @@ -66,6 +66,8 @@ inline bool monitor_x_compare(const Msp::Graphics::Monitor &m1, const Msp::Graph { if(m1.desktop_settings.mode && !m2.desktop_settings.mode) return true; + if(!m1.desktop_settings.mode && m2.desktop_settings.mode) + return false; return m1.desktop_settings.x