From fd4c60336ac95bd739cc1d7df3826f165ca02788 Mon Sep 17 00:00:00 2001 From: wheaney <42350981+wheaney@users.noreply.github.com> Date: Tue, 16 Apr 2024 10:15:10 -0700 Subject: [PATCH] Cursor fixed? Maybe??? --- .../cursormanager.js | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/gnome/breezydesktop@org.xronlinux/cursormanager.js b/gnome/breezydesktop@org.xronlinux/cursormanager.js index 3eb6a57..7be5aa7 100644 --- a/gnome/breezydesktop@org.xronlinux/cursormanager.js +++ b/gnome/breezydesktop@org.xronlinux/cursormanager.js @@ -30,18 +30,6 @@ export class CursorManager { } enable() { - // First 500ms: For some reason, starting the mouse cloning at this - // stage fails when gnome-shell is restarting on x11 and the mouse - // listener doesn't receive any events. Adding a small delay before - // starting the whole mouse cloning business helps. - this._enableTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 5000, () => { - this._enableTimeoutId = null; - this._enable(); - return GLib.SOURCE_REMOVE; - }); - } - - _enable() { this._enableCloningMouse(); this.startCloning(); } @@ -58,15 +46,11 @@ export class CursorManager { } startCloning() { - if (this._cursorWantedVisible) { - this._startCloningMouse(); - } + this._startCloningMouse(); } stopCloning() { - if (!this._cursorWantedVisible) { - this._stopCloningMouse(); - } + this._stopCloningMouse(); } // After this: