diff --git a/libs/video/targets/in_x11.c b/libs/video/targets/in_x11.c index a53d6b0f7..baf65b767 100644 --- a/libs/video/targets/in_x11.c +++ b/libs/video/targets/in_x11.c @@ -622,13 +622,13 @@ IN_LL_Grab_Input (int grab) return; } input_grabbed = 1; - if (in_dga) + if (in_dga->int_val) dga_on (); } else { XUngrabPointer (x_disp, CurrentTime); XUngrabKeyboard (x_disp, CurrentTime); input_grabbed = 0; - if (in_dga) + if (in_dga->int_val) dga_off (); } }