From 30fc9af91bb42d546d20bdedfaa10fbe6c88fcb8 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 16 Jul 2008 23:20:41 +0200 Subject: [PATCH] macosx: Make sure the detached window is movable by background. --- modules/gui/macosx/vout.m | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m index 99712961a7..84c7dde43e 100644 --- a/modules/gui/macosx/vout.m +++ b/modules/gui/macosx/vout.m @@ -887,6 +887,15 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, [o_window performSelectorOnMainThread: @selector(leaveFullscreen) withObject: NULL waitUntilDone: NO]; } + +- (void)scaleWindowWithFactor: (float)factor animate: (BOOL)animate +{ + if( p_vout->b_fullscreen ) + return; + [o_window setMovableByWindowBackground: NO]; + [super scaleWindowWithFactor: factor animate: animate]; + [o_window setMovableByWindowBackground: YES]; +} @end /***************************************************************************** @@ -989,7 +998,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, /* FIXME: fix core */ [o_embeddedwindow performSelector:@selector(orderOut:) withObject:nil afterDelay:3.]; - [o_window setAcceptsMouseMovedEvents: NO]; [[[VLCMain sharedInstance] getEmbeddedList] releaseEmbeddedVout: self]; } -- 2.39.2