From cf00f21f990bda0c610e214f43c6f95acb31e95e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 1 May 2000 23:49:17 +0000 Subject: [PATCH] I'm suprised I didn't lose control of my computer. turns out I forgot to copy the keyboard grabbing code from glx to x11. --- common/vid_x11.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 {