From c824a023c4f640dd72d4c5dc1511eb53055d7535 Mon Sep 17 00:00:00 2001 From: Akemi Date: Tue, 21 Feb 2017 18:04:30 +0100 Subject: 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 --- osdep/macosx_compat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'osdep') 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; -- cgit v1.2.3