Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added a delay hack to let the window manager adjust to the mode chang…
Browse files Browse the repository at this point in the history
…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 b67b6ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/x11/SDL_x11modes.c
Expand Up @@ -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 */

Expand Down

0 comments on commit b67b6ea

Please sign in to comment.