Adapt to fixed Meta functions namespace

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3546>
This commit is contained in:
Bilal Elmoussaoui
2024-12-11 12:45:04 +01:00
parent 961075d0e4
commit 4034e69d0d
15 changed files with 60 additions and 44 deletions

View File

@ -1,7 +1,6 @@
import Clutter from 'gi://Clutter';
import GLib from 'gi://GLib';
import GObject from 'gi://GObject';
import Meta from 'gi://Meta';
import St from 'gi://St';
import * as BarLevel from './barLevel.js';
@ -93,7 +92,7 @@ class OsdWindow extends Clutter.Actor {
return;
if (!this.visible) {
Meta.disable_unredirect_for_display(global.display);
global.compositor.disable_unredirect();
super.show();
this.opacity = 0;
this.get_parent().set_child_above_sibling(this, null);
@ -128,7 +127,7 @@ class OsdWindow extends Clutter.Actor {
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
onComplete: () => {
this._reset();
Meta.enable_unredirect_for_display(global.display);
global.compositor.enable_unredirect();
},
});
return GLib.SOURCE_REMOVE;