mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-24 21:01:17 +00:00
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:
parent
b50e9a1d11
commit
cf00f21f99
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue