From cc573b9897d8fe7628853e45b4dc98dd72784c4e Mon Sep 17 00:00:00 2001 From: wheaney <42350981+wheaney@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:24:43 -0700 Subject: [PATCH] Stopgap fix for cursor issue in Wayland --- gnome/breezydesktop@org.xronlinux/cursormanager.js | 2 +- gnome/breezydesktop@org.xronlinux/extension.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gnome/breezydesktop@org.xronlinux/cursormanager.js b/gnome/breezydesktop@org.xronlinux/cursormanager.js index adb9842..3eb6a57 100644 --- a/gnome/breezydesktop@org.xronlinux/cursormanager.js +++ b/gnome/breezydesktop@org.xronlinux/cursormanager.js @@ -34,7 +34,7 @@ export class CursorManager { // 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, 500, () => { + this._enableTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 5000, () => { this._enableTimeoutId = null; this._enable(); return GLib.SOURCE_REMOVE; diff --git a/gnome/breezydesktop@org.xronlinux/extension.js b/gnome/breezydesktop@org.xronlinux/extension.js index 3395459..9c2f762 100644 --- a/gnome/breezydesktop@org.xronlinux/extension.js +++ b/gnome/breezydesktop@org.xronlinux/extension.js @@ -60,8 +60,8 @@ export default class BreezyDesktopExtension extends Extension { } _find_supported_monitor() { - const target_monitor_id = this._monitor_manager.getMonitorPropertiesList() - .find(monitor => SUPPORTED_MONITOR_PRODUCTS.includes(monitor.product))?.index; + const target_monitor_id = this._monitor_manager.getMonitorPropertiesList()?.find( + monitor => SUPPORTED_MONITOR_PRODUCTS.includes(monitor.product))?.index; if (target_monitor_id !== undefined) { return this._monitor_manager.getMonitors()[target_monitor_id]; }