From adff59843b3cd511557ba5a578d2e75e685b3bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Wed, 6 Apr 2016 10:22:15 +0000 Subject: [PATCH] GDK W32: Don't move windows into top-left corner on style change 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index e6601a85c5..411462c845 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -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); }