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]; }