mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
Some more whitespace, plus stop unconditionally resuming cd audio and sound when focus restored.
This commit is contained in:
parent
ee7e3326e0
commit
b96617e935
1 changed files with 6 additions and 5 deletions
|
@ -491,8 +491,10 @@ event_focusin (XEvent *event)
|
|||
{
|
||||
if (key_dest == key_game)
|
||||
XAutoRepeatOff (x_disp);
|
||||
S_UnblockSound ();
|
||||
CDAudio_Resume ();
|
||||
if (in_snd_block->int_val) {
|
||||
S_UnblockSound ();
|
||||
CDAudio_Resume ();
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -542,7 +544,7 @@ IN_LL_Grab_Input (void)
|
|||
{
|
||||
if (!x_disp || !x_win)
|
||||
return;
|
||||
X11_Grabber(true);
|
||||
X11_Grabber (true);
|
||||
if (in_dga->int_val)
|
||||
dga_on ();
|
||||
}
|
||||
|
@ -554,7 +556,7 @@ IN_LL_Ungrab_Input (void)
|
|||
return;
|
||||
if (in_dga->int_val)
|
||||
dga_off ();
|
||||
X11_Grabber(false);
|
||||
X11_Grabber (false);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -564,7 +566,6 @@ IN_LL_SendKeyEvents (void)
|
|||
X11_ProcessEvents ();
|
||||
}
|
||||
|
||||
/* Called at shutdown */
|
||||
void
|
||||
IN_LL_Shutdown (void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue