From: Richard Huang Date: Thu, 25 Apr 2019 10:32:48 +0000 (+0100) Subject: Only pause the adaptor when all the windows are hidden X-Git-Tag: dali_1.4.17~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=refs%2Fchanges%2F71%2F204671%2F4;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Only pause the adaptor when all the windows are hidden Change-Id: I757abc5e74a36869c68801adf144243313e8986b --- diff --git a/dali/internal/adaptor/common/adaptor-impl.cpp b/dali/internal/adaptor/common/adaptor-impl.cpp index d36c352..d943263 100755 --- a/dali/internal/adaptor/common/adaptor-impl.cpp +++ b/dali/internal/adaptor/common/adaptor-impl.cpp @@ -859,10 +859,25 @@ void Adaptor::OnWindowHidden() { if ( RUNNING == mState ) { - Pause(); + bool allWindowsHidden = true; - // Adaptor cannot be resumed until the window is shown - mState = PAUSED_WHILE_HIDDEN; + for( WindowPtr window : mWindows ) + { + if ( window->IsVisible() ) + { + allWindowsHidden = false; + break; + } + } + + // Only pause the adaptor when all the windows are hidden + if ( allWindowsHidden ) + { + Pause(); + + // Adaptor cannot be resumed until any window is shown + mState = PAUSED_WHILE_HIDDEN; + } } else {