]> git.tdb.fi Git - libs/gui.git/commitdiff
Correctly sort inactive monitors on X11
authorMikko Rasa <tdb@tdb.fi>
Sun, 27 Nov 2022 14:21:30 +0000 (16:21 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 27 Nov 2022 14:27:05 +0000 (16:27 +0200)
source/graphics/x11/display.cpp

index 544f9589fb664cfc3381db0d36fbf7b8c5e1c8d6..60c2182b9f5f09093f4fb89317b9174d1a5cbb1e 100644 (file)
@@ -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<m2.desktop_settings.x;
 }
 #endif