Commit 7183021a authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed 'disappearing' main window (fixes #5714)

parent 37c1667d
......@@ -788,6 +788,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
/* chapters & titles */
//FIXME! b_chapters = p_input->stream.i_area_nb > 1;
if (cachedInputState == PLAYING_S || b_buffering == YES)
[self makeKeyAndOrderFront: nil];
vlc_object_release( p_input );
}
......
......@@ -262,7 +262,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
[[VLCMain sharedInstance] updateMainMenu];
break;
case INPUT_EVENT_CACHE:
[[VLCMain sharedInstance] updateMainWindow];
[[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainWindow) withObject: nil waitUntilDone: NO];
break;
case INPUT_EVENT_STATISTICS:
[[[VLCMain sharedInstance] info] performSelectorOnMainThread:@selector(updateStatistics) withObject: nil waitUntilDone: NO];
......@@ -1461,6 +1461,8 @@ unsigned int CocoaKeyToVLC( unichar i_key )
}
vlc_object_release( p_input );
}
[[VLCMain sharedInstance] performSelectorOnMainThread:@selector(updateMainWindow) withObject: nil waitUntilDone: NO];
}
- (void)playbackModeUpdated
......
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