(svn r10465) -Fix: first run the WE_CREATE callback and then perform the dirtying of the window, so you won't get glitches if you resize a window in the WE_CREATE callback.
authorrubidium
Sat, 07 Jul 2007 17:33:29 +0000
changeset 7190 7ff8b678b459
parent 7189 6b3fd0ca2809
child 7191 a877e27650aa
(svn r10465) -Fix: first run the WE_CREATE callback and then perform the dirtying of the window, so you won't get glitches if you resize a window in the WE_CREATE callback.
src/window.cpp
--- a/src/window.cpp	Sat Jul 07 16:44:10 2007 +0000
+++ b/src/window.cpp	Sat Jul 07 17:33:29 2007 +0000
@@ -652,8 +652,8 @@
 		_last_z_window++;
 	}
 
+	CallWindowEventNP(w, WE_CREATE);
 	SetWindowDirty(w);
-	CallWindowEventNP(w, WE_CREATE);
 
 	return w;
 }