[gnome-shell/gnome-3-8] osdWindow: Don't call enable_unredirection on startup
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-8] osdWindow: Don't call enable_unredirection on startup
- Date: Tue, 18 Jun 2013 20:46:54 +0000 (UTC)
commit 4d785d249f149e2d90813df264c1833d53447714
Author: Adel Gadllah <adel gadllah gmail com>
Date: Tue Jun 18 22:43:25 2013 +0200
osdWindow: Don't call enable_unredirection on startup
This is wrong because it is already enabled. So move this
to out of reset, which gets called from _init().
js/ui/osdWindow.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/osdWindow.js b/js/ui/osdWindow.js
index 7e7b536..36ef3df 100644
--- a/js/ui/osdWindow.js
+++ b/js/ui/osdWindow.js
@@ -167,14 +167,16 @@ const OsdWindow = new Lang.Class({
{ opacity: 0,
time: FADE_TIME,
transition: 'easeOutQuad',
- onComplete: Lang.bind(this, this._reset) });
+ onComplete: Lang.bind(this, function() {
+ this._reset();
+ Meta.enable_unredirect_for_screen(global.screen);
+ });
},
_reset: function() {
this.actor.hide();
this.setLabel(null);
this.setLevel(null);
- Meta.enable_unredirect_for_screen(global.screen);
},
_monitorsChanged: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]