[gnome-shell/wip/message-tray] messageTray: Move the windows when the tray hot corner is used
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray] messageTray: Move the windows when the tray hot corner is used
- Date: Mon, 30 Jul 2012 11:45:13 +0000 (UTC)
commit ad84fb5a2b8151eb8afa15790ee71718ff8f3e21
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Jul 30 13:45:24 2012 +0200
messageTray: Move the windows when the tray hot corner is used
Fixes: https://bugzilla.gnome.org/677215
js/ui/messageTray.js | 22 ++++++++++++++++++++++
js/ui/windowManager.js | 15 ---------------
2 files changed, 22 insertions(+), 15 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 451a408..231e500 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2186,6 +2186,17 @@ const MessageTray = new Lang.Class({
time: ANIMATION_TIME,
transition: 'easeOutQuad'
});
+
+ Main.layoutManager.togglePanelStruts();
+
+ let actors = global.get_window_actors();
+ for (let i = 0; i < actors.length; i++) {
+ let window = actors[i].metaWindow;
+ if (!window.is_on_primary_monitor())
+ continue;
+ let rect = window.get_outer_rect();
+ window.move_frame(true, rect.x, rect.y - this.actor.height);
+ }
},
_hideTray: function() {
@@ -2194,6 +2205,17 @@ const MessageTray = new Lang.Class({
time: ANIMATION_TIME,
transition: 'easeOutQuad'
});
+
+ Main.layoutManager.togglePanelStruts();
+
+ let actors = global.get_window_actors();
+ for (let i = 0; i < actors.length; i++) {
+ let window = actors[i].metaWindow;
+ if (!window.is_on_primary_monitor())
+ continue;
+ let rect = window.get_outer_rect();
+ window.move_frame(true, rect.x, rect.y + this.actor.height);
+ }
},
_onIdleMonitorWatch: function(monitor, id, userBecameIdle) {
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 54939d1..378608b 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -551,21 +551,6 @@ const WindowManager = new Lang.Class({
this.messageTrayRevealed = !this.messageTrayRevealed;
Main.layoutManager.togglePanelStruts();
Main.messageTray.toggle();
-
- let height = Main.messageTray.actor.height;
- let actors = global.get_window_actors();
-
- for (let i = 0; i < actors.length; i++) {
- let window = actors[i].metaWindow;
- if (!window.is_on_primary_monitor())
- continue;
-
- let rect = window.get_outer_rect();
- if (this.messageTrayRevealed)
- window.move_frame(true, rect.x, rect.y - height);
- else
- window.move_frame(true, rect.x, rect.y + height);
- }
},
_showWorkspaceSwitcher : function(display, screen, window, binding) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]