diff options
Diffstat (limited to 'win32/patches/gdkwindow-win32.c.diff')
-rw-r--r-- | win32/patches/gdkwindow-win32.c.diff | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/win32/patches/gdkwindow-win32.c.diff b/win32/patches/gdkwindow-win32.c.diff new file mode 100644 index 0000000..1919095 --- /dev/null +++ b/win32/patches/gdkwindow-win32.c.diff @@ -0,0 +1,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 |