(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 7686 63272fa4ac98
parent 7685 653c353eaa1b
child 7687 0ed68892bc29
(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;
 }