[gnome-shell] Magnifier: Disable unredirect when active



commit 0db3605f339ff12f6cb424ae637b3d4a10aedf57
Author: Magdalen Berns <thismagpie live com>
Date:   Tue Jan 28 20:04:59 2014 +0000

    Magnifier: Disable unredirect when active
    
    The unredirect feature does not apply to the magnifier and it
    prevents users from gaming whilst it is on so disable when magnifier
    is active and allow magnifier users to game!
    
    Bug https://bugzilla.gnome.org/show_bug.cgi?id=708985

 js/ui/magnifier.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index 4eb7d3e..5c79acb 100644
--- a/js/ui/magnifier.js
+++ b/js/ui/magnifier.js
@@ -125,10 +125,14 @@ const Magnifier = new Lang.Class({
             zoomRegion.setActive(activate);
         });
 
-        if (activate)
+        if (activate) {
+            Meta.disable_unredirect_for_screen(global.screen);
             this.startTrackingMouse();
-        else
+        }
+        else {
+            Meta.enable_unredirect_for_screen(global.screen);
             this.stopTrackingMouse();
+        }
 
         // Make sure system mouse pointer is shown when all zoom regions are
         // invisible.


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