mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-02-17 20:34:28 +01:00
SDL - fix fullscreen desktop windows not restoring to fullscreen state if focus changes happen due to programtic window changes (and not user alt-tabbing)
This commit is contained in:
parent
877666e237
commit
bbab38552a
@ -1073,7 +1073,8 @@ X11_DispatchEvent(_THIS)
|
|||||||
because they use the NETWM protocol to notify us of changes.
|
because they use the NETWM protocol to notify us of changes.
|
||||||
*/
|
*/
|
||||||
Uint32 flags = X11_GetNetWMState(_this, xevent.xproperty.window);
|
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) {
|
if (flags & SDL_WINDOW_HIDDEN) {
|
||||||
X11_DispatchUnmapNotify(data);
|
X11_DispatchUnmapNotify(data);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user