Qt: Fix incorrect lock parent

This commit is contained in:
Stenzek 2025-05-19 23:52:11 +10:00
parent a422402014
commit b27e5ac26a
No known key found for this signature in database

View File

@ -3001,7 +3001,7 @@ MainWindow::SystemLock MainWindow::pauseAndLockSystem()
}
// Now we'll either have a borderless window, or a regular window (if we were exclusive fullscreen).
QWidget* dialog_parent = s_system_valid ? getDisplayContainer() : this;
QWidget* dialog_parent = (s_system_valid && was_fullscreen) ? getDisplayContainer() : this;
return SystemLock(dialog_parent, was_paused, was_fullscreen);
}