From 0db3605f339ff12f6cb424ae637b3d4a10aedf57 Mon Sep 17 00:00:00 2001 From: Magdalen Berns Date: Tue, 28 Jan 2014 20:04:59 +0000 Subject: [PATCH] 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 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 4eb7d3e7d..5c79acbd4 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.