mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
core: Port to meta_window_begin_grab_op()
There is no longer reason to call meta_display_begin_grab_op() except for window grab operations, and meta_window_begin_grab_op() is a perfectly fine entry point for all window grab operations. Move away from meta_display_begin_grab_op(). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:
parent
5e4d69c3a8
commit
84ed992a18
@ -8391,15 +8391,12 @@ meta_window_handle_ungrabbed_event (MetaWindow *window,
|
|||||||
op |= META_GRAB_OP_WINDOW_DIR_SOUTH;
|
op |= META_GRAB_OP_WINDOW_DIR_SOUTH;
|
||||||
|
|
||||||
if (op != META_GRAB_OP_WINDOW_BASE)
|
if (op != META_GRAB_OP_WINDOW_BASE)
|
||||||
meta_display_begin_grab_op (display,
|
{
|
||||||
window,
|
meta_window_begin_grab_op (window,
|
||||||
op,
|
op,
|
||||||
TRUE,
|
|
||||||
FALSE,
|
FALSE,
|
||||||
button,
|
event->any.time);
|
||||||
0,
|
}
|
||||||
event->any.time,
|
|
||||||
x, y);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (is_window_grab && (int) button == meta_prefs_get_mouse_button_menu ())
|
else if (is_window_grab && (int) button == meta_prefs_get_mouse_button_menu ())
|
||||||
@ -8414,15 +8411,10 @@ meta_window_handle_ungrabbed_event (MetaWindow *window,
|
|||||||
{
|
{
|
||||||
if (window->has_move_func)
|
if (window->has_move_func)
|
||||||
{
|
{
|
||||||
meta_display_begin_grab_op (display,
|
meta_window_begin_grab_op (window,
|
||||||
window,
|
|
||||||
META_GRAB_OP_MOVING,
|
META_GRAB_OP_MOVING,
|
||||||
TRUE,
|
|
||||||
FALSE,
|
FALSE,
|
||||||
button,
|
event->any.time);
|
||||||
0,
|
|
||||||
event->any.time,
|
|
||||||
x, y);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user