GDK W32: Don't move windows into top-left corner on style change
authorРуслан Ижбулатов <lrn1986@gmail.com>
Wed, 6 Apr 2016 10:22:15 +0000 (10:22 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Wed, 6 Apr 2016 10:22:15 +0000 (10:22 +0000)
This fixes a bug that was introduced by db1b24233e758200ab9bc23fdb9b64dba4876a00.
The reason why 0:0 coordinates were passed was that SWP_NOREPOSITION was
misinterpreted as SWP_NOMOVE. That is not the case - SWP_NOREPOSITION
prevents owner Z-order change, not the window position change.

gdk/win32/gdkwindow-win32.c

index e6601a85c52ebd63eba6d27c1c445f5928327a6a..411462c84567d778f0dd9323a43e3cba1eda1199 100644 (file)
@@ -2846,7 +2846,7 @@ _gdk_win32_window_update_style_bits (GdkWindow *window)
     }
 
   SetWindowPos (GDK_WINDOW_HWND (window), insert_after,
-               0, 0,
+               rect.left, rect.top,
                rect.right - rect.left, rect.bottom - rect.top,
                flags);
 }