From cbfcf1700274fbc2261ecb2020d126bdd689311c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 16 Dec 2024 14:44:10 +0100 Subject: [PATCH] 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: --- js/misc/breakManager.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/misc/breakManager.js b/js/misc/breakManager.js index 748a862fc..fa0f03a0b 100644 --- a/js/misc/breakManager.js +++ b/js/misc/breakManager.js @@ -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(); }); }