Merge pull request #6891 from spycrab/qt_fs_glitch
Qt/HotkeyScheduler: Fix toggle fullscreen glitches
This commit is contained in:
commit
57f9928c49
|
@ -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…
Reference in New Issue