From 4c9966eed6f54740374300b6407384c03c1ec65e Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Thu, 16 Dec 2021 10:22:27 -0500 Subject: [PATCH] wayland: Add a note for why we check 0,0 for fullscreen configurations --- src/video/wayland/SDL_waylandwindow.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index 6d33caf38..f161c857f 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -289,6 +289,9 @@ handle_configure_xdg_toplevel(void *data, } else { /* For fullscreen, foolishly do what the compositor says. If it's wrong, * don't blame us, we were explicitly instructed to do this. + * + * UPDATE: Nope, sure enough a compositor sends 0,0. This is a known bug: + * https://bugs.kde.org/show_bug.cgi?id=444962 */ if (width != 0 && height != 0) { window->w = width;