summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa/window.m
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-03-26 21:46:28 +0200
committerAkemi <der.richter@gmx.de>2017-08-18 19:47:47 +0200
commit344b75f52da349ab293ee2bb7f48604eabcffb0f (patch)
treefe93986060a65603b51949ccd9ce354306253c61 /video/out/cocoa/window.m
parente0a2d152163977fdc2a48ac1bd4144614a1e6f25 (diff)
downloadmpv-344b75f52da349ab293ee2bb7f48604eabcffb0f.tar.bz2
mpv-344b75f52da349ab293ee2bb7f48604eabcffb0f.tar.xz
osx: code cleanups and cosmetic fixes
silence build warnings, clean up code style and remove unused code.
Diffstat (limited to 'video/out/cocoa/window.m')
-rw-r--r--video/out/cocoa/window.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/cocoa/window.m b/video/out/cocoa/window.m
index e08f4745bc..6d464a1a69 100644
--- a/video/out/cocoa/window.m
+++ b/video/out/cocoa/window.m
@@ -47,7 +47,7 @@
@synthesize currentScreen = _current_screen;
@synthesize unfScreen = _unf_Screen;
- (id)initWithContentRect:(NSRect)content_rect
- styleMask:(NSUInteger)style_mask
+ styleMask:(NSWindowStyleMask)style_mask
backing:(NSBackingStoreType)buffering_type
defer:(BOOL)flag
screen:(NSScreen *)screen
@@ -255,6 +255,7 @@
- (BOOL)canBecomeMainWindow { return YES; }
- (BOOL)canBecomeKeyWindow { return YES; }
+
- (BOOL)windowShouldClose:(id)sender
{
cocoa_put_key(MP_KEY_CLOSE_WIN);