From 703a18c25fc4b1e8f06c4b9c8ea7cb74c06b3871 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 11 Mar 2009 12:04:22 +0000 Subject: [PATCH] Bug 574794 - Can not resize shaped windows on Windows 2009-03-11 Tor Lillqvist Bug 574794 - Can not resize shaped windows on Windows * gdk/win32/gdkevents-win32.c (gdk_event_translate): On handling WM_WINDOWPOSCHANGED, don't do anything if the position and size hasn't changed. I am not exactly sure I understand why this helps this particular bug. svn path=/trunk/; revision=22511 --- ChangeLog | 9 +++++++++ gdk/win32/gdkevents-win32.c | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index aff84f7489..eadcb076ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-03-11 Tor Lillqvist + + Bug 574794 - Can not resize shaped windows on Windows + + * gdk/win32/gdkevents-win32.c (gdk_event_translate): On handling + WM_WINDOWPOSCHANGED, don't do anything if the position and size + hasn't changed. I am not exactly sure I understand why this helps + this particular bug. + 2009-03-10 Matthias Clasen Bug 574561 – gtk_style_get "shadows" g_object_get diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 599ff8da2e..572a9d09af 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -3262,6 +3262,12 @@ gdk_event_translate (MSG *msg, buf))))), windowpos->cx, windowpos->cy, windowpos->x, windowpos->y))); + /* If position and size haven't changed, don't do anything */ + if (_sizemove_in_progress && + (windowpos->flags & SWP_NOMOVE) && + (windowpos->flags & SWP_NOSIZE)) + break; + /* Once we've entered the moving or sizing modal loop, we won't * return to the main loop until we're done sizing or moving. */