Skip to content
Permalink
Browse files
Merge pull request #6891 from spycrab/qt_fs_glitch
Qt/HotkeyScheduler: Fix toggle fullscreen glitches
  • Loading branch information
spycrab committed May 18, 2018
2 parents 49c9c1e + cc55817 commit 57f9928
Showing 1 changed file with 5 additions and 0 deletions.
@@ -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();

0 comments on commit 57f9928

Please sign in to comment.