From bbab38552a47b58dd7dcb129cfee0d1c6974b0cd Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 18 Aug 2014 18:16:45 -0700 Subject: [PATCH] SDL - fix fullscreen desktop windows not restoring to fullscreen state if focus changes happen due to programtic window changes (and not user alt-tabbing) --- src/video/x11/SDL_x11events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index 77471325f147a..2bfc2812fc494 100644 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -1073,7 +1073,8 @@ X11_DispatchEvent(_THIS) because they use the NETWM protocol to notify us of changes. */ Uint32 flags = X11_GetNetWMState(_this, xevent.xproperty.window); - if ((flags^data->window->flags) & SDL_WINDOW_HIDDEN) { + if ((flags^data->window->flags) & SDL_WINDOW_HIDDEN || + (flags^data->window->flags) & SDL_WINDOW_FULLSCREEN ) { if (flags & SDL_WINDOW_HIDDEN) { X11_DispatchUnmapNotify(data); } else {