summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2009-03-11 12:04:22 +0000
committerTor Lillqvist <tml@src.gnome.org>2009-03-11 12:04:22 +0000
commit703a18c25fc4b1e8f06c4b9c8ea7cb74c06b3871 (patch)
tree5adb588f164b7243c55cb1e669a82c80a97ba91d /gdk
parent8556432e1673af6a60874533f390c3f71be201fc (diff)
downloadgtk+-703a18c25fc4b1e8f06c4b9c8ea7cb74c06b3871.tar.gz
Bug 574794 - Can not resize shaped windows on Windows
2009-03-11 Tor Lillqvist <tml@iki.fi> 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
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/gdkevents-win32.c6
1 files changed, 6 insertions, 0 deletions
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.
*/