From c6907ea93f7dbd82edd2dc303bc09b4fd255c4d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Mon, 2 Mar 2026 22:32:29 +0100 Subject: [PATCH] Update extension for GNOME 49 --- README.md | 10 +++++++++- extension.js | 6 +++--- metadata.json | 4 ++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 86fc151..479c9d9 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ gdbus call --session --dest org.gnome.Shell --object-path /com/soutade/GenericMo gdbus call --session --dest org.gnome.Shell --object-path /com/soutade/GenericMonitor --method com.soutade.GenericMonitor.deleteGroups '{"groups":["new"]}' ``` -Python examples are available @ https://indefero.soutade.fr/p/genericmonitor/source/tree/master/examples +Python examples are available @ https://forge.soutade.fr/soutade/GnomeShellGenericMonitor/src/branch/master/examples Development @@ -176,6 +176,14 @@ Development After doing code update, you can test it within a nested window. In other cases you have to restart GNOME. +mutter-dev-bin package is required + +```bash +dbus-run-session gnome-shell --devkit --wayland +``` + +before GNOME 48 + ```bash dbus-run-session -- gnome-shell --nested [--wayland] ``` diff --git a/extension.js b/extension.js index 0df9710..474107b 100644 --- a/extension.js +++ b/extension.js @@ -104,7 +104,7 @@ class SignalMgt { array.push(id); id = widget.connect('scroll-event', this._onScroll.bind(this)); array.push(id); - id = widget.connect('button-release-event', this._clicked.bind(this)); + id = widget.connect('button-press-event', this._clicked.bind(this)); array.push(id); } @@ -150,7 +150,7 @@ class SignalMgt { _doClickCallback() { let right = ''; let nbClicks = ''; - + if (this.button == 3) right = 'Right'; if (this.nbClicks > 1) @@ -285,7 +285,7 @@ class MonitorWidget extends PanelMenu.Button { Main.panel.addToStatusArea(this.fullname, this, position, box); } - + update(item) { const prevWidget = this.widget; const prevIcon = this.icon; diff --git a/metadata.json b/metadata.json index 3aa18c4..3de12ce 100644 --- a/metadata.json +++ b/metadata.json @@ -2,9 +2,9 @@ "uuid": "generic-monitor@gnome-shell-extensions", "name": "Generic Monitor", "description": "Display text & icon on systray using DBUS", - "version": "19", + "version": "20", "shell-version": [ - "48" + "49" ], "url": "https://forge.soutade.fr/soutade/GnomeShellGenericMonitor" }