Skip to content

Commit 483e782

Browse files
committed
Added exceptions for new cursor names in GNOME 48
Of course this wasn't mentioned in any release notes, and they just HAD to throw away the old names. Combined with JS going "lol undefined" and Clutter happily eating it and crashing, it's the perfect storm.
1 parent 5a228a7 commit 483e782

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

grab.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ export class MoveGrab {
6666

6767
grabbed = true;
6868
global.display.end_grab_op?.(global.get_current_time());
69-
global.display.set_cursor(Meta.Cursor.MOVE_OR_RESIZE_WINDOW);
69+
if (Utils.version[0] >= 48)
70+
global.display.set_cursor(Meta.Cursor.GRABBING);
71+
else
72+
global.display.set_cursor(Meta.Cursor.MOVE_OR_RESIZE_WINDOW);
7073
this.dispatcher = new Navigator.getActionDispatcher(Clutter.GrabState.POINTER);
7174
this.actor = this.dispatcher.actor;
7275

@@ -131,7 +134,10 @@ export class MoveGrab {
131134
console.debug("#grab", "begin DnD");
132135
Navigator.getNavigator().minimaps.forEach(m => typeof m === 'number'
133136
? Utils.timeout_remove(m) : m.hide());
134-
global.display.set_cursor(Meta.Cursor.MOVE_OR_RESIZE_WINDOW);
137+
if (Utils.version[0] >= 48)
138+
global.display.set_cursor(Meta.Cursor.GRABBING);
139+
else
140+
global.display.set_cursor(Meta.Cursor.MOVE_OR_RESIZE_WINDOW);
135141
let metaWindow = this.window;
136142
let clone = metaWindow.clone;
137143
let space = this.initialSpace;

0 commit comments

Comments
 (0)