| Date: Thu, 16 Jan 2020 12:07:42 -0500
devdraw: abort alt sequence on window change on macOS
Fixes #3.
Diffstat:
M src/cmd/devdraw/mac-screen.m | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
--- |
| t@@ -560,6 +560,10 @@ rpc_resizewindow(Client *c, Rectangle r)
[self sendmouse:0];
}
+- (void)windowDidResignKey:(id)arg {
+ gfx_abortcompose(self.client);
+}
+
- (void)mouseMoved:(NSEvent*)e{ [self getmouse:e];}
- (void)mouseDown:(NSEvent*)e{ [self getmouse:e];}
- (void)mouseDragged:(NSEvent*)e{ [self getmouse:e];} |