[gtk+] win32: on focus restore the window if iconified
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] win32: on focus restore the window if iconified
- Date: Mon, 8 Feb 2016 11:59:29 +0000 (UTC)
commit 07a994c89f5892fd0d7fcf6b5f3448c28e75055b
Author: Yevgen Muntyan <muntyan fastmail fm>
Date: Mon Feb 8 09:24:12 2016 +0100
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
gdk/win32/gdkwindow-win32.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index d04bb69..74b19df 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]