compositor: Drop grab_begin/end vfuncs

These do no longer anything on any implementation, and may be
removed.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3420>
This commit is contained in:
Carlos Garnacho 2023-11-22 02:06:39 +01:00 committed by Robert Mader
parent 3c5bbedb7c
commit f46205417f
4 changed files with 0 additions and 56 deletions

View File

@ -33,8 +33,6 @@ struct _MetaCompositorClass
MetaWindow *window);
int64_t (* monotonic_to_high_res_xserver_time) (MetaCompositor *compositor,
int64_t time_us);
void (* grab_begin) (MetaCompositor *compositor);
void (* grab_end) (MetaCompositor *compositor);
MetaCompositorView * (* create_view) (MetaCompositor *compositor,
ClutterStageView *stage_view);

View File

@ -114,7 +114,6 @@ typedef struct _MetaCompositorPrivate
gulong after_paint_handler_id;
gulong window_visibility_updated_id;
gulong monitors_changed_internal_id;
gulong grabbed_notify_handler_id;
int64_t server_time_query_time;
int64_t server_time_offset;
@ -312,18 +311,6 @@ meta_get_window_actors (MetaDisplay *display)
return priv->windows;
}
void
meta_compositor_grab_begin (MetaCompositor *compositor)
{
META_COMPOSITOR_GET_CLASS (compositor)->grab_begin (compositor);
}
void
meta_compositor_grab_end (MetaCompositor *compositor)
{
META_COMPOSITOR_GET_CLASS (compositor)->grab_end (compositor);
}
static MetaCompositorView *
meta_compositor_create_view (MetaCompositor *compositor,
ClutterStageView *stage_view)
@ -1115,17 +1102,6 @@ on_monitors_changed_internal (MetaMonitorManager *monitor_manager,
meta_compositor_ensure_compositor_views (compositor);
}
static void
on_is_grabbed_changed_cb (ClutterStage *stage,
GParamSpec *pspec,
MetaCompositor *compositor)
{
if (clutter_stage_get_grab_actor (stage) != NULL)
meta_compositor_grab_begin (compositor);
else
meta_compositor_grab_end (compositor);
}
static void
meta_compositor_set_property (GObject *object,
guint prop_id,
@ -1202,11 +1178,6 @@ meta_compositor_constructed (GObject *object)
"after-paint",
G_CALLBACK (on_after_paint),
compositor);
priv->grabbed_notify_handler_id =
g_signal_connect (stage,
"notify::is-grabbed",
G_CALLBACK (on_is_grabbed_changed_cb),
compositor);
priv->window_visibility_updated_id =
g_signal_connect (priv->display,
@ -1240,7 +1211,6 @@ meta_compositor_dispose (GObject *object)
g_clear_signal_handler (&priv->stage_presented_id, stage);
g_clear_signal_handler (&priv->before_paint_handler_id, stage);
g_clear_signal_handler (&priv->after_paint_handler_id, stage);
g_clear_signal_handler (&priv->grabbed_notify_handler_id, stage);
g_clear_signal_handler (&priv->window_visibility_updated_id, priv->display);
g_clear_pointer (&priv->windows, g_list_free);

View File

@ -41,16 +41,6 @@ meta_compositor_server_monotonic_to_high_res_xserver_time (MetaCompositor *compo
return meta_translate_to_high_res_xserver_time (monotonic_time_us);
}
static void
meta_compositor_server_grab_begin (MetaCompositor *compositor)
{
}
static void
meta_compositor_server_grab_end (MetaCompositor *compositor)
{
}
static MetaCompositorView *
meta_compositor_server_create_view (MetaCompositor *compositor,
ClutterStageView *stage_view)
@ -81,7 +71,5 @@ meta_compositor_server_class_init (MetaCompositorServerClass *klass)
compositor_class->manage = meta_compositor_server_manage;
compositor_class->monotonic_to_high_res_xserver_time =
meta_compositor_server_monotonic_to_high_res_xserver_time;
compositor_class->grab_begin = meta_compositor_server_grab_begin;
compositor_class->grab_end = meta_compositor_server_grab_end;
compositor_class->create_view = meta_compositor_server_create_view;
}

View File

@ -438,16 +438,6 @@ meta_compositor_x11_monotonic_to_high_res_xserver_time (MetaCompositor *composit
return monotonic_time_us + compositor_x11->xserver_time_offset_us;
}
static void
meta_compositor_x11_grab_begin (MetaCompositor *compositor)
{
}
static void
meta_compositor_x11_grab_end (MetaCompositor *compositor)
{
}
static MetaCompositorView *
meta_compositor_x11_create_view (MetaCompositor *compositor,
ClutterStageView *stage_view)
@ -527,7 +517,5 @@ meta_compositor_x11_class_init (MetaCompositorX11Class *klass)
compositor_class->remove_window = meta_compositor_x11_remove_window;
compositor_class->monotonic_to_high_res_xserver_time =
meta_compositor_x11_monotonic_to_high_res_xserver_time;
compositor_class->grab_begin = meta_compositor_x11_grab_begin;
compositor_class->grab_end = meta_compositor_x11_grab_end;
compositor_class->create_view = meta_compositor_x11_create_view;
}