From: Pierre d'Herbemont Date: Wed, 16 Jul 2008 21:20:41 +0000 (+0200) Subject: macosx: Make sure the detached window is movable by background. X-Git-Tag: 0.9.0-test3~415 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=30fc9af91bb42d546d20bdedfaa10fbe6c88fcb8;p=vlc macosx: Make sure the detached window is movable by background. --- 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]; }