diff options
author | Russ Cox <rsc@swtch.com> | 2020-01-16 12:07:42 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-01-16 12:07:47 -0500 |
commit | 1d0d432ccb000b28de3309db5f8299357a46c903 (patch) | |
tree | 3e12268c6edcee79e990878e6ccd0a264285de8a /src | |
parent | 23a23689807560ee80806a339be0f7e7cef6340d (diff) | |
download | plan9port-1d0d432ccb000b28de3309db5f8299357a46c903.tar.gz plan9port-1d0d432ccb000b28de3309db5f8299357a46c903.tar.bz2 plan9port-1d0d432ccb000b28de3309db5f8299357a46c903.zip |
devdraw: abort alt sequence on window change on macOS
Fixes #3.
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/devdraw/mac-screen.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/devdraw/mac-screen.m b/src/cmd/devdraw/mac-screen.m index 4bc3f088..dedbfb84 100644 --- a/src/cmd/devdraw/mac-screen.m +++ b/src/cmd/devdraw/mac-screen.m @@ -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];} |