core: Drop MetaEventRoute
This is no longer used. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:
parent
6bd4468b25
commit
b8ab24d816
@ -76,17 +76,6 @@ typedef enum
|
|||||||
META_TILE_MAXIMIZED
|
META_TILE_MAXIMIZED
|
||||||
} MetaTileMode;
|
} MetaTileMode;
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
/* Normal interaction where you're interacting with windows.
|
|
||||||
* Events go to windows normally. */
|
|
||||||
META_EVENT_ROUTE_NORMAL,
|
|
||||||
|
|
||||||
/* In a window operation like moving or resizing. All events
|
|
||||||
* goes to MetaWindow, but not to the actual client window. */
|
|
||||||
META_EVENT_ROUTE_WINDOW_OP,
|
|
||||||
} MetaEventRoute;
|
|
||||||
|
|
||||||
typedef void (* MetaDisplayWindowFunc) (MetaWindow *window,
|
typedef void (* MetaDisplayWindowFunc) (MetaWindow *window,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
@ -156,9 +145,6 @@ struct _MetaDisplay
|
|||||||
guint autoraise_timeout_id;
|
guint autoraise_timeout_id;
|
||||||
MetaWindow* autoraise_window;
|
MetaWindow* autoraise_window;
|
||||||
|
|
||||||
/* Event routing */
|
|
||||||
MetaEventRoute event_route;
|
|
||||||
|
|
||||||
/* current window operation */
|
/* current window operation */
|
||||||
MetaGrabOp grab_op;
|
MetaGrabOp grab_op;
|
||||||
MetaWindow *grab_window;
|
MetaWindow *grab_window;
|
||||||
|
@ -1815,24 +1815,6 @@ get_first_freefloating_window (MetaWindow *window)
|
|||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
|
||||||
static MetaEventRoute
|
|
||||||
get_event_route_from_grab_op (MetaGrabOp op)
|
|
||||||
{
|
|
||||||
switch (META_GRAB_OP_GET_BASE_TYPE (op))
|
|
||||||
{
|
|
||||||
case META_GRAB_OP_NONE:
|
|
||||||
/* begin_grab_op shouldn't be called with META_GRAB_OP_NONE. */
|
|
||||||
g_assert_not_reached ();
|
|
||||||
|
|
||||||
case META_GRAB_OP_WINDOW_BASE:
|
|
||||||
return META_EVENT_ROUTE_WINDOW_OP;
|
|
||||||
|
|
||||||
default:
|
|
||||||
g_assert_not_reached ();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
meta_display_clear_grab_move_resize_later (MetaDisplay *display)
|
meta_display_clear_grab_move_resize_later (MetaDisplay *display)
|
||||||
{
|
{
|
||||||
@ -1858,7 +1840,6 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
|||||||
{
|
{
|
||||||
MetaBackend *backend = backend_from_display (display);
|
MetaBackend *backend = backend_from_display (display);
|
||||||
MetaWindow *grab_window = NULL;
|
MetaWindow *grab_window = NULL;
|
||||||
MetaEventRoute event_route;
|
|
||||||
|
|
||||||
g_assert (window != NULL);
|
g_assert (window != NULL);
|
||||||
|
|
||||||
@ -1875,8 +1856,6 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
event_route = get_event_route_from_grab_op (op);
|
|
||||||
|
|
||||||
if (meta_prefs_get_raise_on_click ())
|
if (meta_prefs_get_raise_on_click ())
|
||||||
meta_window_raise (window);
|
meta_window_raise (window);
|
||||||
else
|
else
|
||||||
@ -1932,7 +1911,6 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
display->event_route = event_route;
|
|
||||||
display->grab_op = op;
|
display->grab_op = op;
|
||||||
display->grab_window = grab_window;
|
display->grab_window = grab_window;
|
||||||
display->grab_tile_mode = grab_window->tile_mode;
|
display->grab_tile_mode = grab_window->tile_mode;
|
||||||
@ -2017,7 +1995,6 @@ meta_display_end_grab_op (MetaDisplay *display,
|
|||||||
meta_window_ungrab_all_keys (grab_window, timestamp);
|
meta_window_ungrab_all_keys (grab_window, timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
display->event_route = META_EVENT_ROUTE_NORMAL;
|
|
||||||
display->grab_window = NULL;
|
display->grab_window = NULL;
|
||||||
display->grab_tile_mode = META_TILE_NONE;
|
display->grab_tile_mode = META_TILE_NONE;
|
||||||
display->grab_tile_monitor_number = -1;
|
display->grab_tile_monitor_number = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user