Merge pull request #6891 from spycrab/qt_fs_glitch

Qt/HotkeyScheduler: Fix toggle fullscreen glitches
This commit is contained in:
spycrab 2018-05-18 19:30:42 +02:00 committed by GitHub
commit 57f9928c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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();