[Gtkradiant] [Bug 819] Moving windows around before full load crashes program

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Thu, 29 May 2003 03:47:38 -0500


------- Additional Comments From spog@planetquake.com  2003-05-29 03:47 -------
It's quite likely that radiant's main window accepts input from the user 
halfway through the initialisation process. At this point, the app is in an 
undefined state.. so the input will cause undefined behaviour. For example, try 
clicking the X on the main window during initialisation.

The solution is to hide the main window (and display the splash-screen instead) 
until the app is completely initialised. This is easier said than done, as some 
of the initialisation processes depend on the main window already having been 
shown (such as opengl init and paned-window resizing). During the port to gtk2 
I moved the show-main-window call to the latest point possible during 
initialisation - when the app may be in a safer state to accept input. However, 
it still needs more work to make it bulletproof.