mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +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.
|
//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
|
//the grab is purely to constrain the pointer to the window
|
||||||
if (!(fullscreenflags & FULLSCREEN_ACTIVE))
|
if (GrabSuccess != XGrabPointer(vid_dpy, DefaultRootWindow(vid_dpy),
|
||||||
XUngrabPointer(vid_dpy, CurrentTime);
|
True,
|
||||||
else
|
0,
|
||||||
{ //don't actually grab if we're fullscreen, but do make sure the rest is done.
|
GrabModeAsync, GrabModeAsync,
|
||||||
if (GrabSuccess != XGrabPointer(vid_dpy, DefaultRootWindow(vid_dpy),
|
vid_window,
|
||||||
True,
|
None,
|
||||||
0,
|
CurrentTime))
|
||||||
GrabModeAsync, GrabModeAsync,
|
Con_Printf("Pointer grab failed\n");
|
||||||
vid_window,
|
|
||||||
None,
|
|
||||||
CurrentTime))
|
|
||||||
Con_Printf("Pointer grab failed\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (x11_input_method == XIM_DGA)
|
if (x11_input_method == XIM_DGA)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue