[gnome-shell/wip/gdm-shell: 4/6] wip: force login window stacking below chrome



commit 1e165d4d3fa9caa39dc5e32df23f0e37a1f28e64
Author: Ray Strode <rstrode redhat com>
Date:   Tue Jun 28 09:03:31 2011 -0400

    wip: force login window stacking below chrome

 js/ui/dialog.js      |    6 +++++-
 js/ui/loginDialog.js |    3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/dialog.js b/js/ui/dialog.js
index c3df6f2..e31404a 100644
--- a/js/ui/dialog.js
+++ b/js/ui/dialog.js
@@ -37,7 +37,8 @@ function Dialog() {
 
 Dialog.prototype = {
     _init: function(params) {
-        params = Params.parse(params, { styleClass: null });
+        params = Params.parse(params, { lowerBelowChrome: null,
+                                        styleClass: null });
 
         this.state = State.CLOSED;
 
@@ -46,6 +47,9 @@ Dialog.prototype = {
                                      y: 0 });
         Main.uiGroup.add_actor(this._group);
 
+        if (params.lowerBelowChrome)
+            this._group.lower(Main.chrome.actor);
+
         let constraint = new Clutter.BindConstraint({ source: global.stage,
                                                       coordinate: Clutter.BindCoordinate.POSITION | Clutter.BindCoordinate.SIZE });
         this._group.add_constraint(constraint);
diff --git a/js/ui/loginDialog.js b/js/ui/loginDialog.js
index b521048..e0df9ba 100644
--- a/js/ui/loginDialog.js
+++ b/js/ui/loginDialog.js
@@ -267,7 +267,8 @@ LoginDialog.prototype = {
     __proto__: Dialog.Dialog.prototype,
 
     _init: function() {
-        Dialog.Dialog.prototype._init.call(this, { styleClass: 'login-dialog' });
+        Dialog.Dialog.prototype._init.call(this, { lowerBelowChrome: true,
+                                                   styleClass: 'login-dialog' });
 
         this.connect('destroy',
                      Lang.bind(this, this._onDestroy));



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