breakManager: Fix (un)inhibiting unredirection

The BreakManager is a relatively recent addition, which is probably
why commit 4034e69d0d8e1 missed it.

Fixes: 4034e69d0d ("Adapt to fixed Meta functions namespace")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3575>
This commit is contained in:
Florian Müllner 2024-12-16 14:44:10 +01:00
parent f89276fc56
commit cbfcf17002

View File

@ -25,7 +25,6 @@ import Clutter from 'gi://Clutter';
import Gio from 'gi://Gio';
import GLib from 'gi://GLib';
import GObject from 'gi://GObject';
import Meta from 'gi://Meta';
import Shell from 'gi://Shell';
import St from 'gi://St';
@ -1394,13 +1393,13 @@ class OsdBreakCountdownLabel extends St.Widget {
this._updateState();
this._position();
Meta.disable_unredirect_for_display(global.display);
global.compositor.disable_unredirect();
this.connect('destroy', () => {
if (this._timerId !== 0)
GLib.source_remove(this._timerId);
this._timerId = 0;
Meta.enable_unredirect_for_display(global.display);
global.compositor.enable_unredirect();
});
}