From: Jonas Ã…dahl Date: Fri, 17 Feb 2023 11:03:58 +0000 (+0100) Subject: wayland: Clean up some dead code X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~6^2~68^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=53c3f497f1542c09d07cb19e6678b16354261dac;p=gtk4.git wayland: Clean up some dead code --- diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index 8e34132bcc..7571c6aa55 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -579,35 +579,12 @@ gdk_wayland_surface_attach_image (GdkSurface *surface, } } -static void -gdk_wayland_surface_sync_offset (GdkSurface *surface) -{ - GdkWaylandSurface *impl = GDK_WAYLAND_SURFACE (surface); - - if (wl_surface_get_version (impl->display_server.wl_surface) < - WL_SURFACE_OFFSET_SINCE_VERSION) - return; - -#if 0 - if (impl->pending_buffer_offset_x == 0 && - impl->pending_buffer_offset_y == 0) - return; - - wl_surface_offset (impl->display_server.wl_surface, - impl->pending_buffer_offset_x, - impl->pending_buffer_offset_y); - impl->pending_buffer_offset_x = 0; - impl->pending_buffer_offset_y = 0; -#endif -} - void gdk_wayland_surface_sync (GdkSurface *surface) { gdk_wayland_surface_sync_shadow (surface); gdk_wayland_surface_sync_opaque_region (surface); gdk_wayland_surface_sync_input_region (surface); - gdk_wayland_surface_sync_offset (surface); } static gboolean