core: Drop META_GRAB_OP_COMPOSITOR

There is no longer meta_plugin_begin_modal(), so this grab operation
is no longer used.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2100>
This commit is contained in:
Carlos Garnacho
2021-11-23 13:01:09 +01:00
parent b6de66e353
commit e8ed9ece1c
3 changed files with 2 additions and 16 deletions

View File

@ -1817,10 +1817,6 @@ get_event_route_from_grab_op (MetaGrabOp op)
case META_GRAB_OP_WINDOW_BASE:
return META_EVENT_ROUTE_WINDOW_OP;
case META_GRAB_OP_COMPOSITOR:
/* begin_grab_op shouldn't be called with META_GRAB_OP_COMPOSITOR. */
g_assert_not_reached ();
case META_GRAB_OP_WAYLAND_POPUP:
return META_EVENT_ROUTE_WAYLAND_POPUP;
@ -2053,9 +2049,7 @@ meta_display_end_grab_op (MetaDisplay *display,
* Gets the current grab operation, if any.
*
* Return value: the current grab operation, or %META_GRAB_OP_NONE if
* Mutter doesn't currently have a grab. %META_GRAB_OP_COMPOSITOR will
* be returned if a compositor-plugin modal operation is in effect
* (See mutter_begin_modal_for_plugin())
* Mutter doesn't currently have a grab.
*/
MetaGrabOp
meta_display_get_grab_op (MetaDisplay *display)