mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-17 01:01:17 +00:00
Fixed stupid bug where it can go into dga but not out of it.. untested.
gl_vidlinuxglx.c -- Eric Windisch
This commit is contained in:
parent
e430dcb260
commit
310ab78850
1 changed files with 11 additions and 6 deletions
|
@ -840,12 +840,17 @@ void VID_ExtraOptionCmd(int option_cursor)
|
|||
#endif
|
||||
|
||||
#ifdef USE_DGA
|
||||
XF86DGADirectVideo(dpy, DefaultScreen(dpy), 1x);
|
||||
dgamouse = 1;
|
||||
|
||||
XGrabPointer(dpy, CurrentTime);
|
||||
XGrabKeyboard(dpy, CurrentTime);
|
||||
|
||||
XF86DGADirectVideo(dpy, DefaultScreen(dpy), vid_mesa_mode.value);
|
||||
dgamouse = vid_mesa_mode.value;
|
||||
|
||||
if(vid_mesa_mode.value)
|
||||
{
|
||||
XGrabPointer(dpy, CurrentTime);
|
||||
XGrabKeyboard(dpy, CurrentTime);
|
||||
} else {
|
||||
XUngrabPointer(dpy, CurrentTime);
|
||||
XUngrabKeyboard(dpy, CurrentTime);
|
||||
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue