mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20: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;
|
||||
|
||||
if (op != META_GRAB_OP_WINDOW_BASE)
|
||||
meta_display_begin_grab_op (display,
|
||||
window,
|
||||
{
|
||||
meta_window_begin_grab_op (window,
|
||||
op,
|
||||
TRUE,
|
||||
FALSE,
|
||||
button,
|
||||
0,
|
||||
event->any.time,
|
||||
x, y);
|
||||
event->any.time);
|
||||
}
|
||||
}
|
||||
}
|
||||
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)
|
||||
{
|
||||
meta_display_begin_grab_op (display,
|
||||
window,
|
||||
meta_window_begin_grab_op (window,
|
||||
META_GRAB_OP_MOVING,
|
||||
TRUE,
|
||||
FALSE,
|
||||
button,
|
||||
0,
|
||||
event->any.time,
|
||||
x, y);
|
||||
event->any.time);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user