mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
display: Remove the screen from set_grab_op_cursor
This commit is contained in:
parent
4fd017d23d
commit
1762436775
@ -369,7 +369,6 @@ Cursor meta_display_create_x_cursor (MetaDisplay *display,
|
||||
MetaCursor cursor);
|
||||
|
||||
void meta_display_set_grab_op_cursor (MetaDisplay *display,
|
||||
MetaScreen *screen,
|
||||
MetaGrabOp op,
|
||||
guint32 timestamp);
|
||||
|
||||
|
@ -1724,13 +1724,12 @@ meta_cursor_for_grab_op (MetaGrabOp op)
|
||||
|
||||
void
|
||||
meta_display_set_grab_op_cursor (MetaDisplay *display,
|
||||
MetaScreen *screen,
|
||||
MetaGrabOp op,
|
||||
guint32 timestamp)
|
||||
{
|
||||
unsigned char mask_bits[XIMaskLen (XI_LASTEVENT)] = { 0 };
|
||||
XIEventMask mask = { XIAllMasterDevices, sizeof (mask_bits), mask_bits };
|
||||
MetaCursorTracker *tracker = meta_cursor_tracker_get_for_screen (screen);
|
||||
MetaCursorTracker *tracker = meta_cursor_tracker_get_for_screen (display->screen);
|
||||
MetaCursor cursor = meta_cursor_for_grab_op (op);
|
||||
MetaCursorReference *cursor_ref;
|
||||
|
||||
@ -1740,8 +1739,6 @@ meta_display_set_grab_op_cursor (MetaDisplay *display,
|
||||
XISetMask (mask.mask, XI_Leave);
|
||||
XISetMask (mask.mask, XI_Motion);
|
||||
|
||||
g_assert (screen != NULL);
|
||||
|
||||
meta_error_trap_push (display);
|
||||
if (XIGrabDevice (display->xdisplay,
|
||||
META_VIRTUAL_CORE_POINTER_ID,
|
||||
@ -1827,7 +1824,7 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
||||
if (pointer_already_grabbed)
|
||||
display->grab_have_pointer = TRUE;
|
||||
|
||||
meta_display_set_grab_op_cursor (display, screen, op, timestamp);
|
||||
meta_display_set_grab_op_cursor (display, op, timestamp);
|
||||
|
||||
if (!display->grab_have_pointer && !meta_grab_op_is_keyboard (op))
|
||||
{
|
||||
|
@ -8102,7 +8102,6 @@ meta_window_update_keyboard_resize (MetaWindow *window,
|
||||
if (update_cursor)
|
||||
{
|
||||
meta_display_set_grab_op_cursor (window->display,
|
||||
window->screen,
|
||||
window->display->grab_op,
|
||||
window->display->grab_timestamp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user