mirror of https://github.com/snes9xgit/snes9x.git
Gtk/Wayland: Only allow one pause state change per focus change.
Check whether we've already paused for it. Gtk/Wayland sends multiple focus_notify events with the same state, even when it doesn't change. This occurs when popup menus are opened and closed.
This commit is contained in:
parent
9be3ed49a8
commit
2ffc66c33c
|
@ -520,7 +520,7 @@ void Snes9xWindow::focus_notify(bool state)
|
|||
{
|
||||
focused = state;
|
||||
|
||||
if (!state && config->pause_emulation_on_switch)
|
||||
if (!state && config->pause_emulation_on_switch && !paused_from_focus_loss)
|
||||
{
|
||||
sys_pause++;
|
||||
propagate_pause_state();
|
||||
|
|
Loading…
Reference in New Issue