Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Added a delay hack to let the window manager adjust to the mode chang…
…e. I'm not sure if this is a good idea, but at least it works sometimes now. :)
  • Loading branch information
slouken committed Oct 4, 2012
1 parent 9d84dca commit b67b6ea683c5b35914c462c8f5e038075d300fef
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/video/x11/SDL_x11modes.c
@@ -740,6 +740,10 @@ X11_SetDisplayMode(_THIS, SDL_VideoDisplay * sdl_display, SDL_DisplayMode * mode
SDL_SetError("XRRSetCrtcConfig failed");
return -1;
}

/* Hack to let the window manager adjust to the mode change */
const int WINDOW_MANAGER_DELAY_HACK = 250;
SDL_Delay(WINDOW_MANAGER_DELAY_HACK);
}
#endif /* SDL_VIDEO_DRIVER_X11_XRANDR */

0 comments on commit b67b6ea

Please sign in to comment.