summaryrefslogtreecommitdiff
path: root/gdk/gdksurface.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-10 13:56:44 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-09-10 13:56:44 -0400
commit2113f98c5c4dab041503a214e4b5e8e6a793db94 (patch)
tree00ec8d4cea0e84533e2a0ee5cf669489b0bc8dc1 /gdk/gdksurface.c
parentb9d4654fcaeb0313845f221135f4236c24ad2248 (diff)
downloadgtk+-2113f98c5c4dab041503a214e4b5e8e6a793db94.tar.gz
gdk: Don't create surfaces of size 0x0
Don't pass 0x0 as size when calling gdk_surface_new(). The Wayland backend takes us literally, and we end up with a surface that (temporarily) has these dimensions, confusing other APIs that we pass the size to, such as Vulkan.
Diffstat (limited to 'gdk/gdksurface.c')
-rw-r--r--gdk/gdksurface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 3a03292251..3624aadeca 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -813,7 +813,7 @@ gdk_surface_new_toplevel (GdkDisplay *display)
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
return gdk_surface_new (display, GDK_SURFACE_TOPLEVEL,
- NULL, 0, 0, 0, 0);
+ NULL, 0, 0, 1, 1);
}
/**