[gnome-documents] presentation: Ensure the builtin display is first in the list



commit 7e90ac2907ae9e9464178267b90888a4c768bf2c
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Sep 29 14:38:07 2014 +0200

    presentation: Ensure the builtin display is first in the list
    
    This makes it consistent with Settings -> Displays.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=737580

 src/presentation.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/presentation.js b/src/presentation.js
index 2829fe9..3a7e36d 100644
--- a/src/presentation.js
+++ b/src/presentation.js
@@ -215,7 +215,10 @@ const PresentationOutputs = new Lang.Class({
             out.x = x;
             out.y = y;
 
-            this.list.push(out);
+            if (output.is_builtin_display())
+                this.list.unshift(out);
+            else
+                this.list.push(out);
         }
     }
 });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]