[vlc-devel] commit: macosx: Make sure the detached window is movable by background. ( Pierre d'Herbemont )

git version control git at videolan.org
Wed Jul 16 23:18:37 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Jul 16 23:20:41 2008 +0200| [30fc9af91bb42d546d20bdedfaa10fbe6c88fcb8]

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=30fc9af91bb42d546d20bdedfaa10fbe6c88fcb8
---

 modules/gui/macosx/vout.m |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 9971296..84c7dde 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];
 }
 




More information about the vlc-devel mailing list