forked from AuroraMiddleware/gtk
win32: on focus restore the window if iconified
If the window is iconified we want to restore the window to get the proper size instead of showing it normal which would change the size of the window. https://bugzilla.gnome.org/show_bug.cgi?id=698652
This commit is contained in:
parent
76d0311ae3
commit
07a994c89f
@ -2994,8 +2994,11 @@ gdk_win32_window_focus (GdkWindow *window,
|
||||
|
||||
if (window->state & GDK_WINDOW_STATE_MAXIMIZED)
|
||||
ShowWindow (GDK_WINDOW_HWND (window), SW_SHOWMAXIMIZED);
|
||||
else if (window->state & GDK_WINDOW_STATE_ICONIFIED)
|
||||
ShowWindow (GDK_WINDOW_HWND (window), SW_RESTORE);
|
||||
else
|
||||
ShowWindow (GDK_WINDOW_HWND (window), SW_SHOWNORMAL);
|
||||
|
||||
SetFocus (GDK_WINDOW_HWND (window));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user