forked from jengelh/SDL2
Jan Engelhardt
71ca4d1cc6
- sdl2-fix-wayland-fullscreen.patch * fix wayland issue for wlroot, see https://github.com/libsdl-org/SDL/pull/4629 OBS-URL: https://build.opensuse.org/request/show/911466 OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=108
23 lines
1017 B
Diff
23 lines
1017 B
Diff
Index: SDL2-2.0.16/src/video/wayland/SDL_waylandwindow.c
|
|
===================================================================
|
|
--- SDL2-2.0.16.orig/src/video/wayland/SDL_waylandwindow.c
|
|
+++ SDL2-2.0.16/src/video/wayland/SDL_waylandwindow.c
|
|
@@ -219,9 +219,15 @@ handle_configure_xdg_toplevel(void *data
|
|
|
|
/* Foolishly do what the compositor says here. If it's wrong, don't
|
|
* blame us, we were explicitly instructed to do this.
|
|
+ * *
|
|
+ * UPDATE: Nope, we can't actually do that, the compositor may give
|
|
+ * us a completely stateless, sizeless configure, with which we have
|
|
+ * to enforce our own state anyway.
|
|
*/
|
|
- window->w = width;
|
|
- window->h = height;
|
|
+ if (width != 0 && height != 0) {
|
|
+ window->w = width;
|
|
+ window->h = height;
|
|
+ }
|
|
|
|
/* This part is good though. */
|
|
if (window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
|