mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 14:49:22 +00:00
Qt/HotkeyScheduler: Fix toggle fullscreen glitches
This commit is contained in:
parent
9bdf7c4b5a
commit
cc55817ec9
1 changed files with 5 additions and 0 deletions
|
@ -155,8 +155,13 @@ void HotkeyScheduler::Run()
|
||||||
|
|
||||||
// Fullscreen
|
// Fullscreen
|
||||||
if (IsHotkey(HK_FULLSCREEN))
|
if (IsHotkey(HK_FULLSCREEN))
|
||||||
|
{
|
||||||
emit FullScreenHotkey();
|
emit FullScreenHotkey();
|
||||||
|
|
||||||
|
// Prevent fullscreen from getting toggled too often
|
||||||
|
Common::SleepCurrentThread(100);
|
||||||
|
}
|
||||||
|
|
||||||
// Pause and Unpause
|
// Pause and Unpause
|
||||||
if (IsHotkey(HK_PLAY_PAUSE))
|
if (IsHotkey(HK_PLAY_PAUSE))
|
||||||
emit TogglePauseHotkey();
|
emit TogglePauseHotkey();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue