Commit 6eaebb99 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

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

Regression if I recall well.
parent c1a89c64
...@@ -70,6 +70,8 @@ ...@@ -70,6 +70,8 @@
[o_btn_fullscreen setState: NO]; [o_btn_fullscreen setState: NO];
b_fullscreen = NO; b_fullscreen = NO;
[self setMovableByWindowBackground:YES];
[self setDelegate:self]; [self setDelegate:self];
/* Make sure setVisible: returns NO */ /* Make sure setVisible: returns NO */
......
...@@ -912,6 +912,11 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -912,6 +912,11 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
o_embeddedwindow = [self window]; o_embeddedwindow = [self window];
} }
- (BOOL)mouseDownCanMoveWindow
{
return YES;
}
- (id)initWithFrame: (NSRect)frameRect - (id)initWithFrame: (NSRect)frameRect
{ {
if(self = [super initWithFrame: frameRect]) if(self = [super initWithFrame: frameRect])
......
...@@ -404,6 +404,11 @@ static void Unlock( vout_thread_t * p_vout ) ...@@ -404,6 +404,11 @@ static void Unlock( vout_thread_t * p_vout )
return self; return self;
} }
- (BOOL)mouseDownCanMoveWindow
{
return YES;
}
- (void) reshape - (void) reshape
{ {
int x, y; int x, y;
......
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