Skip to content

Commit

Permalink
SDL - fix fullscreen desktop windows not restoring to fullscreen stat…
Browse files Browse the repository at this point in the history
…e if focus changes happen due to programtic window changes (and not user alt-tabbing)
  • Loading branch information
slouken committed Aug 19, 2014
1 parent 877666e commit bbab385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/x11/SDL_x11events.c
Expand Up @@ -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 {
Expand Down

0 comments on commit bbab385

Please sign in to comment.