Commit 30fc9af9 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Make sure the detached window is movable by background.

parent 65b80858
...@@ -887,6 +887,15 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -887,6 +887,15 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
[o_window performSelectorOnMainThread: @selector(leaveFullscreen) withObject: NULL waitUntilDone: NO]; [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 @end
/***************************************************************************** /*****************************************************************************
...@@ -989,7 +998,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -989,7 +998,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
/* FIXME: fix core */ /* FIXME: fix core */
[o_embeddedwindow performSelector:@selector(orderOut:) withObject:nil afterDelay:3.]; [o_embeddedwindow performSelector:@selector(orderOut:) withObject:nil afterDelay:3.];
[o_window setAcceptsMouseMovedEvents: NO];
[[[VLCMain sharedInstance] getEmbeddedList] releaseEmbeddedVout: self]; [[[VLCMain sharedInstance] getEmbeddedList] releaseEmbeddedVout: self];
} }
......
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