diff options
| author | Nippy <nippy@Nippy-Mac-mini.local> | 2026-10-09 17:23:53 +0200 |
|---|---|---|
| committer | Nippy <nippy@Nippy-Mac-mini.local> | 2026-10-09 17:23:53 +0200 |
| commit | 9d5be1660d8f74038ebed3d74fdbc809e43787ae (patch) | |
| tree | 4cb46c3765be87ca4c5219f2f714425d7dfddb56 /raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/dbus/services.js | |
| parent | deb4b8a9c407832c35100a643bd7a592589c9679 (diff) | |
| download | RaveOS-PKGBUILD-9d5be1660d8f74038ebed3d74fdbc809e43787ae.tar.gz RaveOS-PKGBUILD-9d5be1660d8f74038ebed3d74fdbc809e43787ae.zip | |
gnome fix
Diffstat (limited to 'raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/dbus/services.js')
| -rw-r--r-- | raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/dbus/services.js | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/dbus/services.js b/raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/dbus/services.js index 4b1f4f0..0b2f144 100644 --- a/raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/dbus/services.js +++ b/raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/dbus/services.js @@ -3,18 +3,24 @@ import GLib from 'gi://GLib'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import * as LookingGlass from 'resource:///org/gnome/shell/ui/lookingGlass.js'; +const IFACE_XML = ` +<node> + <interface name="dev.aunetx.BlurMyShell"> + <!-- This method is called in preferences to pick a window --> + <method name="pick" /> + <!-- When window is picking, send a signal to preferences --> + <signal name="picking"></signal> + <!-- If window is picked, send a signal to preferences --> + <signal name="picked"> + <arg name="window" type="s" /> + </signal> + </interface> +</node> +`; export const ApplicationsService = class ApplicationsService { constructor() { - let decoder = new TextDecoder(); - let path = GLib.filename_from_uri(GLib.uri_resolve_relative( - import.meta.url, 'iface.xml', GLib.UriFlags.NONE) - )[0]; - let [, buffer] = GLib.file_get_contents(path); - let iface = decoder.decode(buffer); - GLib.free(buffer); - - this.DBusImpl = Gio.DBusExportedObject.wrapJSObject(iface, this); + this.DBusImpl = Gio.DBusExportedObject.wrapJSObject(IFACE_XML, this); } /// Pick Window for Preferences Page, exported to DBus client. @@ -49,7 +55,7 @@ export const ApplicationsService = class ApplicationsService { // inspect window now const inspector = new LookingGlass.Inspector(Main.createLookingGlass()); - inspector.connect('target', (me, target, x, y) => { + inspector.connect('target', (me, target, _x, _y) => { // remove border effect when window is picked. const effect_name = 'lookingGlass_RedBorderEffect'; target |