diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 8e149a130..1c935b9c9 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -127,6 +127,10 @@ var Magnifier = class Magnifier { * Show the system mouse pointer. */ showSystemCursor() { + const seat = Clutter.get_default_backend().get_default_seat(); + + if (seat.is_unfocus_inhibited()) + seat.uninhibit_unfocus(); this._cursorTracker.set_pointer_visible(true); } @@ -135,6 +139,10 @@ var Magnifier = class Magnifier { * Hide the system mouse pointer. */ hideSystemCursor() { + const seat = Clutter.get_default_backend().get_default_seat(); + + if (!seat.is_unfocus_inhibited()) + seat.inhibit_unfocus(); this._cursorTracker.set_pointer_visible(false); }