forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
b9d4654fca
commit
2113f98c5c
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user