devdraw: abort alt sequence on window change on macOS

Fixes #3.
This commit is contained in:
Russ Cox 2020-01-16 12:07:42 -05:00
parent 23a2368980
commit 1d0d432ccb

View file

@ -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];}