Qt/HotkeyScheduler: Fix toggle fullscreen glitches

This commit is contained in:
spycrab 2018-05-18 09:20:02 +02:00
parent 9bdf7c4b5a
commit cc55817ec9

View File

@ -155,8 +155,13 @@ void HotkeyScheduler::Run()
// Fullscreen
if (IsHotkey(HK_FULLSCREEN))
{
emit FullScreenHotkey();
// Prevent fullscreen from getting toggled too often
Common::SleepCurrentThread(100);
}
// Pause and Unpause
if (IsHotkey(HK_PLAY_PAUSE))
emit TogglePauseHotkey();