gtk+ r22511 - in trunk: . gdk/win32



Author: tml
Date: Wed Mar 11 12:04:22 2009
New Revision: 22511
URL: http://svn.gnome.org/viewvc/gtk+?rev=22511&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/gdk/win32/gdkevents-win32.c

Modified: trunk/gdk/win32/gdkevents-win32.c
==============================================================================
--- trunk/gdk/win32/gdkevents-win32.c	(original)
+++ trunk/gdk/win32/gdkevents-win32.c	Wed Mar 11 12:04:22 2009
@@ -3262,6 +3262,12 @@
 				       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.
        */



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