diff --git a/common/vid_x11.c b/common/vid_x11.c index d7067f8..04f62b1 100644 --- a/common/vid_x11.c +++ b/common/vid_x11.c @@ -651,6 +651,13 @@ void VID_Init (unsigned char *palette) // map the window XMapWindow(x_disp, x_win); +#ifdef HAS_VIDMODE + if (hasvidmode && vid_fullscreen->value) { + XRaiseWindow(x_disp, x_win); + XGrabKeyboard(x_disp, x_win, 1, GrabModeAsync, GrabModeAsync, + CurrentTime); + } +#endif // wait for first exposure event {