From 7008a0e6725a2d2a169adf7d268ab91b3e7a190d Mon Sep 17 00:00:00 2001 From: Jonian Guveli Date: Sun, 12 Apr 2026 13:33:48 +0300 Subject: [PATCH] add support for gnome 50 --- unite@hardpixel.eu/metadata.json | 2 +- unite@hardpixel.eu/window.js | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/unite@hardpixel.eu/metadata.json b/unite@hardpixel.eu/metadata.json index dd44af6..da9b3ce 100644 --- a/unite@hardpixel.eu/metadata.json +++ b/unite@hardpixel.eu/metadata.json @@ -1,5 +1,5 @@ { - "shell-version": ["45", "46", "47", "48", "49"], + "shell-version": ["45", "46", "47", "48", "49", "50"], "uuid": "unite@hardpixel.eu", "url": "https://github.com/hardpixel/unite-shell", "settings-schema": "org.gnome.shell.extensions.unite", diff --git a/unite@hardpixel.eu/window.js b/unite@hardpixel.eu/window.js index 336c4ba..2fac17c 100644 --- a/unite@hardpixel.eu/window.js +++ b/unite@hardpixel.eu/window.js @@ -159,6 +159,14 @@ const MetaWindow = GObject.registerClass( return false } + get skipTaskbar() { + if (Meta.is_wayland_compositor) { + return Meta.is_wayland_compositor() && this.win.skip_taskbar + } + + return this.win.skip_taskbar + } + get primaryScreen() { return this.win.is_on_primary_monitor() } @@ -276,10 +284,9 @@ const MetaWindow = GObject.registerClass( if (this.hasFocus) { const overview = Main.overview.visibleTarget const controls = Main.panel.statusArea.uniteWindowControls - const skipTbar = Meta.is_wayland_compositor() && this.win.skip_taskbar controls && controls.setVisible( - !overview && !skipTbar && this.showButtons + !overview && !this.skipTaskbar && this.showButtons ) } }