Commit cd2b8983 authored by Benjamin Otte's avatar Benjamin Otte

wayland: Sync attributes also when drawing with GL

Probably syncing attributes shouldn't happen when drawing in the first
place, but what do I know about Wayland. ¯\_(ツ)_/¯
parent a85a97c1
......@@ -241,6 +241,8 @@ gdk_wayland_gl_context_end_frame (GdkDrawContext *draw_context,
eglSwapBuffers (display_wayland->egl_display, egl_surface);
gdk_wayland_window_sync (window);
static void
......@@ -97,6 +97,7 @@ guint _gdk_wayland_cursor_get_next_image_index (GdkCursor *cursor,
void _gdk_wayland_cursor_set_scale (GdkCursor *cursor,
guint scale);
void gdk_wayland_window_sync (GdkWindow *window);
GdkDragProtocol _gdk_wayland_window_get_drag_protocol (GdkWindow *window,
GdkWindow **target);
......@@ -920,6 +920,12 @@ gdk_window_impl_wayland_end_paint (GdkWindow *window)
impl->pending_commit = TRUE;
gdk_wayland_window_sync (window);
gdk_wayland_window_sync (GdkWindow *window)
gdk_wayland_window_sync_margin (window);
gdk_wayland_window_sync_opaque_region (window);
gdk_wayland_window_sync_input_region (window);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment