diff --git a/src/compositor/meta-compositor-server.c b/src/compositor/meta-compositor-server.c index ce0ac6880..55f360a80 100644 --- a/src/compositor/meta-compositor-server.c +++ b/src/compositor/meta-compositor-server.c @@ -41,30 +41,9 @@ meta_compositor_server_monotonic_to_high_res_xserver_time (MetaCompositor *compo return meta_translate_to_high_res_xserver_time (monotonic_time_us); } -#ifdef HAVE_WAYLAND -static MetaWaylandCompositor * -wayland_compositor_from_display (MetaDisplay *display) -{ - MetaContext *context = meta_display_get_context (display); - - return meta_context_get_wayland_compositor (context); -} -#endif - static void meta_compositor_server_grab_begin (MetaCompositor *compositor) { - MetaDisplay *display = meta_compositor_get_display (compositor); -#ifdef HAVE_WAYLAND - MetaWaylandCompositor *wayland_compositor = - wayland_compositor_from_display (display); -#endif - -#ifdef HAVE_WAYLAND - meta_wayland_compositor_sync_focus (wayland_compositor); -#endif - meta_display_cancel_touch (display); - #ifdef HAVE_WAYLAND meta_dnd_wayland_handle_begin_modal (compositor); #endif @@ -74,12 +53,7 @@ static void meta_compositor_server_grab_end (MetaCompositor *compositor) { #ifdef HAVE_WAYLAND - MetaDisplay *display = meta_compositor_get_display (compositor);; - MetaWaylandCompositor *wayland_compositor = - wayland_compositor_from_display (display); - meta_dnd_wayland_handle_end_modal (compositor); - meta_wayland_compositor_sync_focus (wayland_compositor); #endif }