-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yevgen Muntyan
committed
Feb 28, 2016
1 parent
e87c075
commit 83ce4a0
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c | ||
index bd64237..1adb84d 100644 | ||
--- a/gdk/win32/gdkwindow-win32.c | ||
+++ b/gdk/win32/gdkwindow-win32.c | ||
@@ -1258,11 +1258,11 @@ show_window_internal (GdkWindow *window, | ||
} | ||
else if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_TEMP || !focus_on_map) | ||
{ | ||
- ShowWindow (GDK_WINDOW_HWND (window), SW_SHOWNOACTIVATE); | ||
+ ShowWindow (GDK_WINDOW_HWND (window), SW_SHOWNA); | ||
} | ||
else | ||
{ | ||
- ShowWindow (GDK_WINDOW_HWND (window), SW_SHOWNORMAL); | ||
+ ShowWindow (GDK_WINDOW_HWND (window), SW_SHOW); | ||
} | ||
|
||
/* Sync STATE_ABOVE to TOPMOST */ | ||
@@ -3713,8 +3713,10 @@ gdk_window_focus (GdkWindow *window, | ||
|
||
if (((GdkWindowObject *) window)->state & GDK_WINDOW_STATE_MAXIMIZED) | ||
ShowWindow (GDK_WINDOW_HWND (window), SW_SHOWMAXIMIZED); | ||
+ else if (((GdkWindowObject *) window)->state & GDK_WINDOW_STATE_ICONIFIED) | ||
+ ShowWindow (GDK_WINDOW_HWND (window), SW_RESTORE); | ||
else | ||
- ShowWindow (GDK_WINDOW_HWND (window), SW_SHOWNORMAL); | ||
+ ShowWindow (GDK_WINDOW_HWND (window), SW_SHOW); | ||
SetFocus (GDK_WINDOW_HWND (window)); | ||
} | ||
|