[vlc-devel] commit: macosx: Make sure we can move the window by clicking in its background. (Pierre d' Herbemont )

git version control git at videolan.org
Sun Jul 13 18:50:37 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jul 13 18:52:35 2008 +0200| [6eaebb9957b40bc3779c467f2cb4c583665baf86]

macosx: Make sure we can move the window by clicking in its background.

Regression if I recall well.

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

 modules/gui/macosx/embeddedwindow.m |    2 ++
 modules/gui/macosx/vout.m           |    5 +++++
 modules/gui/macosx/voutgl.m         |    5 +++++
 3 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/embeddedwindow.m b/modules/gui/macosx/embeddedwindow.m
index 3277971..5fceaa9 100644
--- a/modules/gui/macosx/embeddedwindow.m
+++ b/modules/gui/macosx/embeddedwindow.m
@@ -70,6 +70,8 @@
     [o_btn_fullscreen setState: NO];
     b_fullscreen = NO;
 
+    [self setMovableByWindowBackground:YES];
+
     [self setDelegate:self];
 
     /* Make sure setVisible: returns NO */
diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 868eb2d..1d5e534 100644
--- a/modules/gui/macosx/vout.m
+++ b/modules/gui/macosx/vout.m
@@ -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])
diff --git a/modules/gui/macosx/voutgl.m b/modules/gui/macosx/voutgl.m
index 13d8817..428a557 100644
--- a/modules/gui/macosx/voutgl.m
+++ b/modules/gui/macosx/voutgl.m
@@ -404,6 +404,11 @@ static void Unlock( vout_thread_t * p_vout )
     return self;
 }
 
+- (BOOL)mouseDownCanMoveWindow
+{
+    return YES;
+}
+
 - (void) reshape
 {
     int x, y;




More information about the vlc-devel mailing list