Commit 5655be1558904a257dfc12a63840d8e32aec1b18

Ethan Lee 2022-03-26T19:57:39

wayland: Avoid overwriting xdg_output position with wl_output position

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/wayland/SDL_waylandvideo.c b/src/video/wayland/SDL_waylandvideo.c
index 93420bf..52a324c 100644
--- a/src/video/wayland/SDL_waylandvideo.c
+++ b/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 */
-    if (driverdata->has_logical_position) {
+    if (!driverdata->has_logical_position) {
         driverdata->x = x;
         driverdata->y = y;
     }