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
This commit is contained in:
Magdalen Berns 2014-01-28 20:04:59 +00:00 committed by Adel Gadllah
parent 173fa92116
commit 0db3605f33

View File

@ -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.