[gtk+] GDK W32: Don't move windows into top-left corner on style change



commit adff59843b3cd511557ba5a578d2e75e685b3bed
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 e6601a8..411462c 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);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]