Kaydet (Commit) 2f1c1708 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Fix fdo#33816 - don't loop infinitely when using Apple Remote

Removed erratic loop condition - we simply want to check if any
frame has fullscreen flag set.
üst d6aa26c8
...@@ -626,9 +626,9 @@ void AquaSalInstance::handleAppDefinedEvent( NSEvent* pEvent ) ...@@ -626,9 +626,9 @@ void AquaSalInstance::handleAppDefinedEvent( NSEvent* pEvent )
bool bIsFullScreenMode = false; bool bIsFullScreenMode = false;
std::list<AquaSalFrame*>::iterator it = pSalData->maFrames.begin(); std::list<AquaSalFrame*>::iterator it = pSalData->maFrames.begin();
while( (*it) && ( (it != pSalData->maFrames.end() ) || ( (*it)->mbFullScreen == false ) ) ) while( it != pSalData->maFrames.end() )
{ {
if ( ((*it)->mbFullScreen == true) ) if ( (*it) && ((*it)->mbFullScreen == true) )
bIsFullScreenMode = true; bIsFullScreenMode = true;
++it; ++it;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment