* missing file in previous commit
[vlc.git] / modules / gui / macosx / fspanel.m
index 584325e..607b364 100644 (file)
 /* This routine is called repeatedly to fade in the window */\r
 - (void)focus:(NSTimer *)timer\r
 {\r
+    /* we need to push ourselves to front if the vout window was closed since our last display */\r
+    if( b_voutWasUpdated )\r
+    {\r
+        [self orderFront: self];\r
+        b_voutWasUpdated = NO;\r
+    }\r
+\r
     if( [self alphaValue] < 1.0 )\r
         [self setAlphaValue:[self alphaValue]+0.1];\r
     if( [self alphaValue] >= 1.0 )\r
     {\r
+        b_displayed = YES;\r
         [self setAlphaValue: 1.0];\r
         [self setFadeTimer:nil];\r
         if( b_fadeQueued )\r
         [self setAlphaValue:[self alphaValue]-0.1];\r
     if( [self alphaValue] <= 0.1 )\r
     {\r
+        b_displayed = NO;\r
         [self setAlphaValue:0.0];\r
         [self setFadeTimer:nil];\r
         if( b_fadeQueued )\r
     point.y -= mouseClic.y;\r
     [self setFrameOrigin:point];\r
 }\r
+\r
+- (BOOL)isDisplayed\r
+{\r
+    return b_displayed;\r
+}\r
+\r
+- (void)setVoutWasUpdated\r
+{\r
+    b_voutWasUpdated = YES;\r
+}\r
 @end\r
 \r
 /*****************************************************************************\r