Qt: Fix power off system hotkey when fullscreen

This commit is contained in:
Stenzek
2025-12-01 15:19:08 +10:00
parent ceb199b18d
commit 3e32deebfc

View File

@@ -2871,7 +2871,7 @@ void Host::ReleaseRenderWindow()
bool Host::CanChangeFullscreenMode(bool new_fullscreen_state)
{
// Don't mess with fullscreen while locked.
return !QtHost::IsSystemLocked();
return (!new_fullscreen_state || !QtHost::IsSystemLocked());
}
void EmuThread::updatePerformanceCounters(const GPUBackend* gpu_backend)