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.

This commit is contained in:
Bill Currie 2000-05-01 23:49:17 +00:00
parent b50e9a1d11
commit cf00f21f99

View file

@ -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
{