JBR-1874 Cursor not changing from 'default' to 'text'

Prevent OS from changing cursor

(cherry picked from commit 94a4eb7002)
(cherry picked from commit c640e06d25)
This commit is contained in:
Alexey Ushakov
2019-09-26 12:52:04 +03:00
committed by jbrbot
parent 33434a78fd
commit b617b2b17c

View File

@@ -102,6 +102,10 @@ static NSPoint lastTopLeftPoint;
return [(AWTWindow*)[self delegate] worksWhenModal]; \
} \
\
- (void)cursorUpdate:(NSEvent *)event { \
/* Prevent cursor updates from OS side */ \
} \
\
- (void)sendEvent:(NSEvent *)event { \
[(AWTWindow*)[self delegate] sendEvent:event]; \
[super sendEvent:event]; \