diff --git a/src/core/display.c b/src/core/display.c index 49aea52d5..8959aa0e3 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -3862,6 +3862,7 @@ meta_display_set_grab_op_cursor (MetaDisplay *display, { unsigned char mask_bits[XIMaskLen (XI_LASTEVENT)] = { 0 }; XIEventMask mask = { XIAllMasterDevices, sizeof (mask_bits), mask_bits }; + MetaCursor cursor = meta_cursor_for_grab_op (op); XISetMask (mask.mask, XI_ButtonPress); XISetMask (mask.mask, XI_ButtonRelease); @@ -3876,7 +3877,7 @@ meta_display_set_grab_op_cursor (MetaDisplay *display, META_VIRTUAL_CORE_POINTER_ID, grab_xwindow, timestamp, - None, + meta_display_create_x_cursor (display, cursor), XIGrabModeAsync, XIGrabModeAsync, False, /* owner_events */ &mask) == Success) @@ -3895,7 +3896,7 @@ meta_display_set_grab_op_cursor (MetaDisplay *display, meta_error_trap_pop (display); - meta_cursor_tracker_set_grab_cursor (screen->cursor_tracker, meta_cursor_for_grab_op (op)); + meta_cursor_tracker_set_grab_cursor (screen->cursor_tracker, cursor); } gboolean