Stopgap fix for cursor issue in Wayland
This commit is contained in:
parent
8d4da0d56e
commit
cc573b9897
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue