From 85977354fbce9ecb2add660a88e6bec3532c3e26 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 7 Apr 2022 09:14:33 -0400
Subject: [PATCH] x11: Treat WM setting the window "fullscreen" like
FULLSCREEN_DESKTOP.
Fixes #5390.
---
src/video/x11/SDL_x11window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video/x11/SDL_x11window.c b/src/video/x11/SDL_x11window.c
index d56d9283ebe..24fcbc541e1 100644
--- a/src/video/x11/SDL_x11window.c
+++ b/src/video/x11/SDL_x11window.c
@@ -222,7 +222,7 @@ X11_GetNetWMState(_THIS, Window xwindow)
}
if (fullscreen == 1) {
- flags |= SDL_WINDOW_FULLSCREEN; /* !!! FIXME: arguably this is more like FULLSCREEN_DESKTOP...? */
+ flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
}
/* If the window is unmapped, numItems will be zero and _NET_WM_STATE_HIDDEN