window: Drop frame_action argument from meta_window_begin_grab_op()
The final effect of this boolean can now be expressed through the META_GRAB_OP_WINDOW_FLAG_UNCONSTRAINED flag to MetaGrabOp. Use that in the relevant places, and drop the argument. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:

committed by
Marge Bot

parent
f62200a17b
commit
12773cf8e2
@ -6733,7 +6733,6 @@ warp_grab_pointer (MetaWindow *window,
|
||||
gboolean
|
||||
meta_window_begin_grab_op (MetaWindow *window,
|
||||
MetaGrabOp op,
|
||||
gboolean frame_action,
|
||||
guint32 timestamp)
|
||||
{
|
||||
int x, y;
|
||||
@ -6756,9 +6755,6 @@ meta_window_begin_grab_op (MetaWindow *window,
|
||||
y = pos.y;
|
||||
}
|
||||
|
||||
if (!frame_action)
|
||||
op |= META_GRAB_OP_WINDOW_FLAG_UNCONSTRAINED;
|
||||
|
||||
return meta_display_begin_grab_op (window->display,
|
||||
window,
|
||||
op,
|
||||
@ -8391,9 +8387,9 @@ meta_window_handle_ungrabbed_event (MetaWindow *window,
|
||||
|
||||
if (op != META_GRAB_OP_WINDOW_BASE)
|
||||
{
|
||||
op |= META_GRAB_OP_WINDOW_FLAG_UNCONSTRAINED;
|
||||
meta_window_begin_grab_op (window,
|
||||
op,
|
||||
FALSE,
|
||||
event->any.time);
|
||||
}
|
||||
}
|
||||
@ -8411,8 +8407,8 @@ meta_window_handle_ungrabbed_event (MetaWindow *window,
|
||||
if (window->has_move_func)
|
||||
{
|
||||
meta_window_begin_grab_op (window,
|
||||
META_GRAB_OP_MOVING,
|
||||
FALSE,
|
||||
META_GRAB_OP_MOVING |
|
||||
META_GRAB_OP_WINDOW_FLAG_UNCONSTRAINED,
|
||||
event->any.time);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user