diff options
| author | 2021-11-17 18:07:47 +0300 | |
|---|---|---|
| committer | 2021-11-17 18:07:47 +0300 | |
| commit | f7e0a377536cc7e84c81173bd54ac2a45b39addf (patch) | |
| tree | 74d498e9fe90dfd1f0cc12eba1fcc64fffc2c00b | |
| parent | Merge pull request #7326 from ameerj/vp8 (diff) | |
| download | yuzu-f7e0a377536cc7e84c81173bd54ac2a45b39addf.tar.gz yuzu-f7e0a377536cc7e84c81173bd54ac2a45b39addf.tar.xz yuzu-f7e0a377536cc7e84c81173bd54ac2a45b39addf.zip | |
Prevent window flickering when holding Esc
Reported on discord by Levlight. Don't try to exit fullscreen if it's already off.
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 4e5552d2a..0bae95202 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -975,7 +975,7 @@ void GMainWindow::InitializeHotkeys() { | |||
| 975 | &QShortcut::activatedAmbiguously, ui->action_Fullscreen, &QAction::trigger); | 975 | &QShortcut::activatedAmbiguously, ui->action_Fullscreen, &QAction::trigger); |
| 976 | connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Exit Fullscreen"), this), | 976 | connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Exit Fullscreen"), this), |
| 977 | &QShortcut::activated, this, [&] { | 977 | &QShortcut::activated, this, [&] { |
| 978 | if (emulation_running) { | 978 | if (emulation_running && ui->action_Fullscreen->isChecked()) { |
| 979 | ui->action_Fullscreen->setChecked(false); | 979 | ui->action_Fullscreen->setChecked(false); |
| 980 | ToggleFullscreen(); | 980 | ToggleFullscreen(); |
| 981 | } | 981 | } |