mirror of
https://github.com/yawut/SDL.git
synced 2026-07-19 09:21:40 -05:00
Added a delay hack to let the window manager adjust to the mode change. I'm not sure if this is a good idea, but at least it works sometimes now. :)
This commit is contained in:
parent
5624b76a13
commit
4b635c333f
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user