diff --git a/src/window.cpp b/src/window.cpp index f15061c921..325242b3a1 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -652,8 +652,8 @@ static Window *LocalAllocateWindow( _last_z_window++; } - SetWindowDirty(w); CallWindowEventNP(w, WE_CREATE); + SetWindowDirty(w); return w; }