[gnome-shell] osdWindow: Disable unredirection while showing the OSD
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] osdWindow: Disable unredirection while showing the OSD
- Date: Fri, 7 Jun 2013 19:21:22 +0000 (UTC)
commit 24703ffa57a8544beff467999dc2c332dcfadbce
Author: Adel Gadllah <adel gadllah gmail com>
Date: Thu May 30 10:43:23 2013 +0200
osdWindow: Disable unredirection while showing the OSD
This allows OSDs to be visible even when displayed on top
of unredirected windows.
https://bugzilla.gnome.org/show_bug.cgi?id=701224
js/ui/osdWindow.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/osdWindow.js b/js/ui/osdWindow.js
index 09d0354..340702a 100644
--- a/js/ui/osdWindow.js
+++ b/js/ui/osdWindow.js
@@ -136,6 +136,7 @@ const OsdWindow = new Lang.Class({
return;
if (!this.actor.visible) {
+ Meta.disable_unredirect_for_screen(global.screen);
this.actor.show();
this.actor.opacity = 0;
this.actor.get_parent().set_child_above_sibling(this.actor, null);
@@ -173,6 +174,7 @@ const OsdWindow = new Lang.Class({
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]