Selaa lähdekoodia

wayland: Add a note for why we check 0,0 for fullscreen configurations

Ethan Lee 4 vuotta sitten
vanhempi
commit
4c9966eed6
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      src/video/wayland/SDL_waylandwindow.c

+ 3 - 0
src/video/wayland/SDL_waylandwindow.c

@@ -289,6 +289,9 @@ handle_configure_xdg_toplevel(void *data,
     } else {
     } else {
         /* For fullscreen, foolishly do what the compositor says. If it's wrong,
         /* For fullscreen, foolishly do what the compositor says. If it's wrong,
          * don't blame us, we were explicitly instructed to do this.
          * 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) {
         if (width != 0 && height != 0) {
             window->w = width;
             window->w = width;