src/video/x11/SDL_x11video.c
changeset 860 2bac79e27868
parent 769 b8d311d90021
child 867 5c7859610bc4
equal deleted inserted replaced
859:6b28c91bf3d2 860:2bac79e27868
   663 	int vis_change;
   663 	int vis_change;
   664 
   664 
   665 	/* If a window is already present, destroy it and start fresh */
   665 	/* If a window is already present, destroy it and start fresh */
   666 	if ( SDL_Window ) {
   666 	if ( SDL_Window ) {
   667 		X11_DestroyWindow(this, screen);
   667 		X11_DestroyWindow(this, screen);
       
   668 		switch_waiting = 0; /* Prevent jump back to now-meaningless state. */
   668 	}
   669 	}
   669 
   670 
   670 	/* See if we have been given a window id */
   671 	/* See if we have been given a window id */
   671 	if ( SDL_windowid ) {
   672 	if ( SDL_windowid ) {
   672 		SDL_Window = strtol(SDL_windowid, NULL, 0);
   673 		SDL_Window = strtol(SDL_windowid, NULL, 0);