Quellcode durchsuchen

wayland: Avoid overwriting xdg_output position with wl_output position

Ethan Lee vor 4 Jahren
Ursprung
Commit
5655be1558
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/video/wayland/SDL_waylandvideo.c

+ 1 - 1
src/video/wayland/SDL_waylandvideo.c

@@ -389,7 +389,7 @@ display_handle_geometry(void *data,
     }
     }
 
 
     /* Apply the change from wl-output only if xdg-output is not supported */
     /* Apply the change from wl-output only if xdg-output is not supported */
-    if (driverdata->has_logical_position) {
+    if (!driverdata->has_logical_position) {
         driverdata->x = x;
         driverdata->x = x;
         driverdata->y = y;
         driverdata->y = y;
     }
     }