macosx: fix handling of video-on-top (close #9615)

This commit is contained in:
David Fuhrmann 2013-10-25 18:19:43 +02:00
parent ce91cdb742
commit 77cb25d1ad
1 changed files with 6 additions and 2 deletions

View File

@ -251,8 +251,10 @@
[o_vout_dict removeObjectForKey:o_key]; [o_vout_dict removeObjectForKey:o_key];
if ([o_vout_dict count] == 0) if ([o_vout_dict count] == 0) {
[[VLCMain sharedInstance] setActiveVideoPlayback:NO]; [[VLCMain sharedInstance] setActiveVideoPlayback:NO];
i_statusLevelWindowCounter = 0;
}
} }
@ -274,7 +276,9 @@
i_statusLevelWindowCounter++; i_statusLevelWindowCounter++;
[self updateWindowLevelForHelperWindows:i_level]; [self updateWindowLevelForHelperWindows:i_level];
} else { } else {
i_statusLevelWindowCounter--; if (i_statusLevelWindowCounter > 0)
i_statusLevelWindowCounter--;
if (i_statusLevelWindowCounter == 0) { if (i_statusLevelWindowCounter == 0) {
[self updateWindowLevelForHelperWindows:i_level]; [self updateWindowLevelForHelperWindows:i_level];
} }