summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2016-04-06 10:22:15 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2016-04-06 10:25:32 +0000
commitf233609c9328d03222a19e37db78caedb8b7e9c5 (patch)
tree20110090731b95dfe9b02a7cc8a4a2a739259c81 /gdk
parentdee6d13f0dfe5b2853ed63c5e72d9bff9b3d73d1 (diff)
downloadgtk+-f233609c9328d03222a19e37db78caedb8b7e9c5.tar.gz
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.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/gdkwindow-win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index afba8c1926..f0953d89d1 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -2785,7 +2785,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);
}