]> git.sesse.net Git - vlc/commitdiff
macosx: Make sure we can move the window by clicking in its background.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 13 Jul 2008 16:52:35 +0000 (18:52 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 13 Jul 2008 16:52:35 +0000 (18:52 +0200)
Regression if I recall well.

modules/gui/macosx/embeddedwindow.m
modules/gui/macosx/vout.m
modules/gui/macosx/voutgl.m

index 327797138980e92869e8df1f45d0cc4ef366eaa6..5fceaa999635c2d6a392bd86ae895a08ac656000 100644 (file)
@@ -70,6 +70,8 @@
     [o_btn_fullscreen setState: NO];
     b_fullscreen = NO;
 
+    [self setMovableByWindowBackground:YES];
+
     [self setDelegate:self];
 
     /* Make sure setVisible: returns NO */
index 868eb2daa16a56a90532cb45b206a71d8af526ad..1d5e534af1a7c35280d0966364b61a4fd1450ada 100644 (file)
@@ -912,6 +912,11 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
     o_embeddedwindow = [self window];
 }
 
+- (BOOL)mouseDownCanMoveWindow
+{
+    return YES;
+}
+
 - (id)initWithFrame: (NSRect)frameRect
 {
     if(self = [super initWithFrame: frameRect])
index 13d88175808f711a3730b8c53743e4ae96828b5b..428a557431e85bb1ab6f9446f40364e3c13455e2 100644 (file)
@@ -404,6 +404,11 @@ static void Unlock( vout_thread_t * p_vout )
     return self;
 }
 
+- (BOOL)mouseDownCanMoveWindow
+{
+    return YES;
+}
+
 - (void) reshape
 {
     int x, y;