From 6eaebb9957b40bc3779c467f2cb4c583665baf86 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sun, 13 Jul 2008 18:52:35 +0200 Subject: [PATCH] macosx: Make sure we can move the window by clicking in its background. Regression if I recall well. --- modules/gui/macosx/embeddedwindow.m | 2 ++ modules/gui/macosx/vout.m | 5 +++++ modules/gui/macosx/voutgl.m | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/modules/gui/macosx/embeddedwindow.m b/modules/gui/macosx/embeddedwindow.m index 3277971389..5fceaa9996 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 868eb2daa1..1d5e534af1 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 13d8817580..428a557431 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; -- 2.39.2