Fix title bar setting bug
authorSam Lantinga <slouken@libsdl.org>
Fri, 31 Aug 2001 20:53:05 +0000
changeset 160 2a8d929f50e0
parent 159 9841293e9e86
child 161 eb6b76a95f2d
Fix title bar setting bug
src/video/x11/SDL_x11video.c
--- a/src/video/x11/SDL_x11video.c	Tue Aug 21 07:27:51 2001 +0000
+++ b/src/video/x11/SDL_x11video.c	Fri Aug 31 20:53:05 2001 +0000
@@ -850,9 +850,9 @@
 	if ( ! SDL_windowid ) {
 		XMapWindow(SDL_Display, SDL_Window);
 		XMapWindow(SDL_Display, WMwindow);
+		X11_WaitMapped(this, WMwindow);
 		if ( flags & SDL_FULLSCREEN ) {
 			screen->flags |= SDL_FULLSCREEN;
-			X11_WaitMapped(this, WMwindow);
 			X11_EnterFullScreen(this);
 		} else {
 			screen->flags &= ~SDL_FULLSCREEN;