gtk+ r22510 - in branches/gtk-2-14: . gdk/win32



Author: tml
Date: Wed Mar 11 12:01:50 2009
New Revision: 22510
URL: http://svn.gnome.org/viewvc/gtk+?rev=22510&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:
   branches/gtk-2-14/ChangeLog
   branches/gtk-2-14/gdk/win32/gdkevents-win32.c

Modified: branches/gtk-2-14/gdk/win32/gdkevents-win32.c
==============================================================================
--- branches/gtk-2-14/gdk/win32/gdkevents-win32.c	(original)
+++ branches/gtk-2-14/gdk/win32/gdkevents-win32.c	Wed Mar 11 12:01:50 2009
@@ -3265,6 +3265,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]