SDL2: dont try show window if it was hidden by DE/WM.
PATCH 2/2 SDL2: dont try show window if it was hidden by DE/WM.
Signed-off-by Andrei Karas <[email protected]>
--- ui/sdl2.c | 3 --- 1 file changed, 3 deletions(-)
ui/sdl2.c +0 -3
@@ -584,9 +584,6 @@ static void handle_windowevent(SDL_Event *ev) }break ;case SDL_WINDOWEVENT_HIDDEN : -if (!scon->hidden) { -SDL_ShowWindow (scon->real_window); - }break ; } }
Signature · 1 line
2.9.3
Quoted 10 lines · Andrei Karas
Signed-off-by Andrei Karas <[email protected]>--- ui/sdl2.c | 3 --- 1 file changed, 3 deletions(-)ui/sdl2.c +0
-0
ui/sdl2.c static void handle_windowevent(SDL_Event *ev) · line 589
Quoted 6 lines
ui/sdl2.c +0
-3@@ -584,9 +584,6 @@ static void handle_windowevent(SDL_Event *ev) }break ;case SDL_WINDOWEVENT_HIDDEN : -if (!scon->hidden) { -SDL_ShowWindow (scon->real_window); - }
Ok, but we should update scon->hidden with the new state then I guess? And probably also in case the DE/WM shows the window again?
cheers,
Gerd
Quoted 9 lines
Среда, 7 сентября 2016, 14:29 +03:00 от Gerd Hoffmann <[email protected]>:
Quoted 5 lines · Andrei Karas
Signed-off-by Andrei Karas < [email protected] >--- ui/sdl2.c | 3 --- 1 file changed, 3 deletions(-)
Quoted 14 lines
ui/sdl2.c static void handle_windowevent(SDL_Event *ev) · line 589
Quoted 11 lines
ui/sdl2.c +0
-3@@ -584,9 +584,6 @@ static void handle_windowevent(SDL_Event *ev) }break ;case SDL_WINDOWEVENT_HIDDEN : -if (!scon->hidden) { -SDL_ShowWindow (scon->real_window); - }Ok, but we should update
scon->hiddenwith the new state then I guess? And probably also in case the DE/WM shows the window again?
Issue what i solved here is. On hide event from DE/WM old code try to show window. This is mistake.
I will try to update scon->hidden on show/hide WM event.