[vlc-commits] macosx: fix main window appearing with a delay of some seconds
David Fuhrmann
git at videolan.org
Sat Apr 11 20:48:35 CEST 2015
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Apr 11 20:46:45 2015 +0200| [8de7ac281107b742b40867b0694482bf9861effb] | committer: David Fuhrmann
macosx: fix main window appearing with a delay of some seconds
close #14361
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8de7ac281107b742b40867b0694482bf9861effb
---
modules/gui/macosx/intf.m | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index e175a0f..678952b 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -784,7 +784,10 @@ static VLCMain *_o_sharedMainInstance = nil;
PL_UNLOCK;
[NSBundle loadNibNamed:@"MainWindow" owner: self];
- [o_mainwindow makeKeyAndOrderFront:nil];
+
+ // This cannot be called directly here, as the main loop is not running yet so it would have no effect.
+ // So lets enqueue it into the loop for later execution.
+ [o_mainwindow performSelector:@selector(makeKeyAndOrderFront:) withObject:nil afterDelay:0];
[[SUUpdater sharedUpdater] setDelegate:self];
}
More information about the vlc-commits
mailing list