summaryrefslogtreecommitdiff
path: root/contrib/win32/patches/gdkwindow-win32.c.diff
blob: 1919095f5ddbfd7a2c3faf95eda7c7fd28e3e675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- gdkwindow-win32.c.0	2014-09-29 16:02:16 -0400
+++ gdkwindow-win32.c	2015-12-24 06:08:41 -0500
@@ -3202,6 +3202,12 @@
 		SWP_FRAMECHANGED | SWP_NOACTIVATE | 
 		SWP_NOREPOSITION | SWP_NOZORDER);
 
+  /* For reasons not clearly understood, the first call to SetWindowPos will
+   * sometimes ignore/adjust the window size we requested.  The second call
+   * below works around this bug/feature. */
+  SetWindowPos (GDK_WINDOW_HWND (window), NULL,
+		0, 0, rect.right - rect.left, rect.bottom - rect.top,
+		SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOZORDER);
 }
 
 static void