mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:58:03 +02:00
Ensure we continue calling idle when minimized
This commit is contained in:
parent
e99683fdcf
commit
1aee8f1f4d
1 changed files with 13 additions and 3 deletions
|
@ -2751,6 +2751,16 @@ bool Application::event(QEvent* event) {
|
||||||
static_cast<LambdaEvent*>(event)->call();
|
static_cast<LambdaEvent*>(event)->call();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
// Explicit idle keeps the idle running at a lower interval, but without any rendering
|
||||||
|
// see (windowMinimizedChanged)
|
||||||
|
case Event::Idle:
|
||||||
|
{
|
||||||
|
float nsecsElapsed = (float)_lastTimeUpdated.nsecsElapsed();
|
||||||
|
_lastTimeUpdated.start();
|
||||||
|
idle(nsecsElapsed);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
|
||||||
case Event::Present:
|
case Event::Present:
|
||||||
if (!_renderRequested) {
|
if (!_renderRequested) {
|
||||||
float nsecsElapsed = (float)_lastTimeUpdated.nsecsElapsed();
|
float nsecsElapsed = (float)_lastTimeUpdated.nsecsElapsed();
|
||||||
|
@ -5439,9 +5449,9 @@ void Application::updateWindowTitle() const {
|
||||||
#endif
|
#endif
|
||||||
_window->setWindowTitle(title);
|
_window->setWindowTitle(title);
|
||||||
|
|
||||||
// updateTitleWindow gets called whenever there's a change regarding the domain, so rather
|
// updateTitleWindow gets called whenever there's a change regarding the domain, so rather
|
||||||
// than placing this within domainChanged, it's placed here to cover the other potential cases.
|
// than placing this within domainChanged, it's placed here to cover the other potential cases.
|
||||||
DependencyManager::get< MessagesClient >()->sendLocalMessage("Toolbar-DomainChanged", "");
|
DependencyManager::get< MessagesClient >()->sendLocalMessage("Toolbar-DomainChanged", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::clearDomainOctreeDetails() {
|
void Application::clearDomainOctreeDetails() {
|
||||||
|
|
Loading…
Reference in a new issue