From 10e560b5db6f89e60a734764a570a4b665480e4a Mon Sep 17 00:00:00 2001 From: Jerry Date: Sun, 24 Mar 2024 11:22:03 +0800 Subject: [PATCH] gnome 46, version 11 --- activate_gnome@isjerryxiao/extension.js | 7 ++++--- activate_gnome@isjerryxiao/metadata.json | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/activate_gnome@isjerryxiao/extension.js b/activate_gnome@isjerryxiao/extension.js index 8067144..83bc88d 100644 --- a/activate_gnome@isjerryxiao/extension.js +++ b/activate_gnome@isjerryxiao/extension.js @@ -44,8 +44,9 @@ export default class ActivateGnomeExtension extends Extension { let label_2 = new St.Label({style_class: 'label-2', text: text2, opacity}) label_1.set_style(`font-size: ${size1}px`) label_2.set_style(`font-size: ${size2}px`) - Main.layoutManager.uiGroup.add_actor(label_2, {"trackFullscreen": false}) - Main.layoutManager.uiGroup.add_actor(label_1, {"trackFullscreen": false}) + let params = {"trackFullscreen": false, "affectsStruts": false, "affectsInputRegion": true} + Main.layoutManager.addTopChrome(label_2, params) + Main.layoutManager.addTopChrome(label_1, params) this.labels.push(label_1) this.labels.push(label_2) let h = Math.max(0, Math.floor(monitor.height * vl2 - label_2.height)) @@ -57,7 +58,7 @@ export default class ActivateGnomeExtension extends Extension { cleanup() { for (let label of this.labels) { - Main.layoutManager.uiGroup.remove_actor(label) + Main.layoutManager.removeChrome(label) label.destroy() } this.labels = [] diff --git a/activate_gnome@isjerryxiao/metadata.json b/activate_gnome@isjerryxiao/metadata.json index cdd98fd..94a0b7a 100644 --- a/activate_gnome@isjerryxiao/metadata.json +++ b/activate_gnome@isjerryxiao/metadata.json @@ -4,8 +4,9 @@ "uuid": "activate_gnome@isjerryxiao", "settings-schema": "org.gnome.shell.extensions.activate_gnome", "shell-version": [ - "45" + "45", + "46" ], - "version": 10, + "version": 11, "url": "https://github.com/isjerryxiao/gnome-shell-extension-activate-gnome" }