mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
------------------------------------------------------------------------
r4199 | acceptthis | 2013-02-14 18:27:06 +0000 (Thu, 14 Feb 2013) | 1 line fix windowed mousegrab issue ------------------------------------------------------------------------ git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4197 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b8e29f5a47
commit
4ba750bc7b
1 changed files with 8 additions and 13 deletions
|
@ -491,19 +491,14 @@ static void install_grabs(void)
|
|||
{
|
||||
//XGrabPointer can cause alt+tab type shortcuts to be skipped by the window manager. This means we don't want to use it unless we have no choice.
|
||||
//the grab is purely to constrain the pointer to the window
|
||||
if (!(fullscreenflags & FULLSCREEN_ACTIVE))
|
||||
XUngrabPointer(vid_dpy, CurrentTime);
|
||||
else
|
||||
{ //don't actually grab if we're fullscreen, but do make sure the rest is done.
|
||||
if (GrabSuccess != XGrabPointer(vid_dpy, DefaultRootWindow(vid_dpy),
|
||||
True,
|
||||
0,
|
||||
GrabModeAsync, GrabModeAsync,
|
||||
vid_window,
|
||||
None,
|
||||
CurrentTime))
|
||||
Con_Printf("Pointer grab failed\n");
|
||||
}
|
||||
if (GrabSuccess != XGrabPointer(vid_dpy, DefaultRootWindow(vid_dpy),
|
||||
True,
|
||||
0,
|
||||
GrabModeAsync, GrabModeAsync,
|
||||
vid_window,
|
||||
None,
|
||||
CurrentTime))
|
||||
Con_Printf("Pointer grab failed\n");
|
||||
|
||||
if (x11_input_method == XIM_DGA)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue