diff options
author | Akemi <der.richter@gmx.de> | 2017-02-21 18:04:30 +0100 |
---|---|---|
committer | Akemi <der.richter@gmx.de> | 2017-02-21 19:26:33 +0100 |
commit | c824a023c4f640dd72d4c5dc1511eb53055d7535 (patch) | |
tree | b2d9e0fa4b11075a439bad39a5afca0c7e407e27 /osdep/macosx_compat.h | |
parent | aeddc499d84e0cc87e6f500dce99b8588ecc959a (diff) | |
download | mpv-c824a023c4f640dd72d4c5dc1511eb53055d7535.tar.bz2 mpv-c824a023c4f640dd72d4c5dc1511eb53055d7535.tar.xz |
cocoa: fix dragging out of focus window
fffab30 introduced a small regression where the cursor couldn't be
unhidden after refocusing. the problem is that no mouseUp event was
reported in our events_view. work around this with a separate event
monitor. this also fixes another regression when the window is being
dragged from the title bar.
#4174
Diffstat (limited to 'osdep/macosx_compat.h')
-rw-r--r-- | osdep/macosx_compat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/macosx_compat.h b/osdep/macosx_compat.h index 9ef422be2f..c8099d7def 100644 --- a/osdep/macosx_compat.h +++ b/osdep/macosx_compat.h @@ -39,6 +39,7 @@ static const NSEventType NSEventTypeKeyUp = NSKeyUp; static const NSEventMask NSEventMaskKeyDown = NSKeyDownMask; static const NSEventMask NSEventMaskKeyUp = NSKeyUpMask; +static const NSEventMask NSEventMaskLeftMouseUp = NSLeftMouseUpMask; #if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_10) typedef NSUInteger NSEventModifierFlags; |