mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 05:53:10 +02:00
Merge pull request #4779 from jherico/hmd_tools
Fix for HMDTools targeting wrong screen on OSX
This commit is contained in:
commit
b27154186b
1 changed files with 7 additions and 2 deletions
|
@ -162,11 +162,16 @@ void HMDToolsDialog::enterHDMMode() {
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
Application::getInstance()->setFullscreen(true);
|
|
||||||
Application::getInstance()->setEnableVRMode(true);
|
Application::getInstance()->setEnableVRMode(true);
|
||||||
|
|
||||||
const int SLIGHT_DELAY = 500;
|
const int SLIGHT_DELAY = 500;
|
||||||
QTimer::singleShot(SLIGHT_DELAY, this, SLOT(activateWindowAfterEnterMode()));
|
// If we go to fullscreen immediately, it ends up on the primary monitor,
|
||||||
|
// even though we've already moved the window. By adding this delay, the
|
||||||
|
// fullscreen target screen ends up correct.
|
||||||
|
QTimer::singleShot(SLIGHT_DELAY, this, [&]{
|
||||||
|
Application::getInstance()->setFullscreen(true);
|
||||||
|
activateWindowAfterEnterMode();
|
||||||
|
});
|
||||||
|
|
||||||
_inHDMMode = true;
|
_inHDMMode = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue