# HG changeset patch # User rubidium # Date 2007-07-07 17:33:29 # Node ID c4c54c4adc93a962658360efe3a4725da30a218b # Parent 9d9de8e83460fdac6313c46e8e14efd04af5d45e (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. diff --git a/src/window.cpp b/src/window.cpp --- a/src/window.cpp +++ b/src/window.cpp @@ -652,8 +652,8 @@ static Window *LocalAllocateWindow( _last_z_window++; } + CallWindowEventNP(w, WE_CREATE); SetWindowDirty(w); - CallWindowEventNP(w, WE_CREATE); return w; }