[gtk+/gtk-3-20] GDK W32: Don't move windows into top-left corner on style change
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] GDK W32: Don't move windows into top-left corner on style change
- Date: Wed, 6 Apr 2016 10:27:54 +0000 (UTC)
commit f233609c9328d03222a19e37db78caedb8b7e9c5
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Wed Apr 6 10:22:15 2016 +0000
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index afba8c1..f0953d8 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]