mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-01-22 07:51:20 +00:00
Warp the cursor out of the way for 3dfx users. Hopefully this does the job.
This commit is contained in:
parent
4f0e4c858a
commit
858a0e5db2
2 changed files with 3 additions and 3 deletions
|
@ -441,9 +441,6 @@ IN_Init(void)
|
|||
XF86DGADirectVideo(x_disp, DefaultScreen(x_disp),
|
||||
XF86DGADirectMouse|XF86DGADirectKeyb);
|
||||
|
||||
//XWarpPointer(x_disp, None, x_win, 0, 0, 0, 0,
|
||||
// vid.width+2, vid.height+2);
|
||||
|
||||
XGrabPointer (x_disp, x_win, True, MOUSE_MASK, GrabModeAsync,
|
||||
GrabModeAsync, x_win, None, CurrentTime);
|
||||
|
||||
|
|
|
@ -667,6 +667,9 @@ void VID_Init(unsigned char *palette)
|
|||
CreateNullCursor(x_disp, x_win);
|
||||
XDefineCursor(x_disp, x_win, nullcursor);
|
||||
|
||||
XWarpPointer(x_disp, None, x_win, 0, 0, 0, 0,
|
||||
vid.width+2, vid.height+2);
|
||||
|
||||
#ifdef HAVE_VIDMODE
|
||||
if (hasvidmode && vid_fullscreen->value) {
|
||||
XGrabKeyboard(x_disp, x_win, 1, GrabModeAsync, GrabModeAsync,
|
||||
|
|
Loading…
Reference in a new issue