diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/cocoa_common.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libvo/cocoa_common.m b/libvo/cocoa_common.m index aa8480bec5..36f5e2471f 100644 --- a/libvo/cocoa_common.m +++ b/libvo/cocoa_common.m @@ -368,6 +368,7 @@ void create_menu() [self setLevel:s->fullscreen_window_level]; vo_fs = VO_TRUE; vo_cocoa_display_cursor(0); + [self setMovableByWindowBackground: NO]; } else { [NSApp setPresentationOptions:NSApplicationPresentationDefault]; [self setHasShadow:YES]; @@ -382,6 +383,7 @@ void create_menu() [self setLevel:s->windowed_window_level]; vo_fs = VO_FALSE; vo_cocoa_display_cursor(1); + [self setMovableByWindowBackground: YES]; } } @@ -399,6 +401,12 @@ void create_menu() return NO; } +- (BOOL) isMovableByWindowBackground +{ + // this is only valid as a starting value. it will be rewritten in the -fullscreen method. + return !vo_fs; +} + - (void) handleQuitEvent:(NSAppleEventDescriptor*)e withReplyEvent:(NSAppleEventDescriptor*)r { mplayer_put_key(l_vo->key_fifo, KEY_CLOSE_WIN); |