mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
fix a seg witn +set in_grab on the command line
This commit is contained in:
parent
75aaccf9f0
commit
f9e610bf6b
1 changed files with 4 additions and 0 deletions
|
@ -476,6 +476,8 @@ event_motion (XEvent * event)
|
||||||
void
|
void
|
||||||
IN_LL_Grab_Input (void)
|
IN_LL_Grab_Input (void)
|
||||||
{
|
{
|
||||||
|
if (!x_disp || !x_win)
|
||||||
|
return;
|
||||||
XGrabPointer (x_disp, x_win, True, MOUSE_MASK, GrabModeAsync,
|
XGrabPointer (x_disp, x_win, True, MOUSE_MASK, GrabModeAsync,
|
||||||
GrabModeAsync, x_win, None, CurrentTime);
|
GrabModeAsync, x_win, None, CurrentTime);
|
||||||
if (in_dga->int_val)
|
if (in_dga->int_val)
|
||||||
|
@ -486,6 +488,8 @@ IN_LL_Grab_Input (void)
|
||||||
void
|
void
|
||||||
IN_LL_Ungrab_Input (void)
|
IN_LL_Ungrab_Input (void)
|
||||||
{
|
{
|
||||||
|
if (!x_disp || !x_win)
|
||||||
|
return;
|
||||||
if (in_dga->int_val)
|
if (in_dga->int_val)
|
||||||
dga_off ();
|
dga_off ();
|
||||||
XUngrabPointer (x_disp, CurrentTime);
|
XUngrabPointer (x_disp, CurrentTime);
|
||||||
|
|
Loading…
Reference in a new issue