SDL - fix fullscreen desktop windows not restoring to fullscreen state if focus changes happen due to programtic window changes (and not user alt-tabbing)
authorSam Lantinga <slouken@libsdl.org>
Mon, 18 Aug 2014 18:16:45 -0700
changeset 909029eb1cfa3445
parent 9089 a592d934b331
child 9091 ac980036d2fc
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
     1.1 --- a/src/video/x11/SDL_x11events.c	Mon Aug 18 11:28:16 2014 -0700
     1.2 +++ b/src/video/x11/SDL_x11events.c	Mon Aug 18 18:16:45 2014 -0700
     1.3 @@ -1073,7 +1073,8 @@
     1.4                     because they use the NETWM protocol to notify us of changes.
     1.5                   */
     1.6                  Uint32 flags = X11_GetNetWMState(_this, xevent.xproperty.window);
     1.7 -                if ((flags^data->window->flags) & SDL_WINDOW_HIDDEN) {
     1.8 +				if ((flags^data->window->flags) & SDL_WINDOW_HIDDEN ||
     1.9 +					(flags^data->window->flags) & SDL_WINDOW_FULLSCREEN ) {
    1.10                      if (flags & SDL_WINDOW_HIDDEN) {
    1.11                          X11_DispatchUnmapNotify(data);
    1.12                      } else {