projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bca4af3
)
GdkX11DragSurface: set visible state and invalidate on present
author
Alexander Larsson
<alexl@redhat.com>
Thu, 14 May 2020 12:33:57 +0000
(14:33 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Thu, 14 May 2020 12:33:57 +0000
(14:33 +0200)
Without this we won't actually draw the surface.
gdk/x11/gdksurface-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdksurface-x11.c
b/gdk/x11/gdksurface-x11.c
index 19f8911f91173122728af3745faac3f4b8d598a6..9353e01f9b7a920ce893cf4617d470c515c02731 100644
(file)
--- a/
gdk/x11/gdksurface-x11.c
+++ b/
gdk/x11/gdksurface-x11.c
@@
-5128,7
+5128,10
@@
gdk_x11_drag_surface_present (GdkDragSurface *drag_surface,
GdkSurface *surface = GDK_SURFACE (drag_surface);
gdk_x11_surface_toplevel_resize (surface, width, height);
+ gdk_synthesize_surface_state (surface, GDK_SURFACE_STATE_WITHDRAWN, 0);
+ _gdk_surface_update_viewable (surface);
gdk_x11_surface_show (surface, FALSE);
+ gdk_surface_invalidate_rect (surface, NULL);
return TRUE;
}