diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2019-04-05 20:43:21 +0200 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2019-04-05 14:43:21 -0400 |
commit | 4d3c36cce4d70dfd88bd5e782e86141775577d30 (patch) | |
tree | 43162bcf345f248e3141b61d5c0f685df94b3d09 /src/cmd/devdraw | |
parent | 047fd921744f39a82a86d9370e03f7af511e6e84 (diff) | |
download | plan9port-4d3c36cce4d70dfd88bd5e782e86141775577d30.tar.gz plan9port-4d3c36cce4d70dfd88bd5e782e86141775577d30.tar.bz2 plan9port-4d3c36cce4d70dfd88bd5e782e86141775577d30.zip |
devdraw: respond to windowDidBecomeKey on darwin (#239)
Fixes bug where devdraw does not "notice" mouse position after task
switch. Fixes https://github.com/9fans/plan9port/issues/232.
Diffstat (limited to 'src/cmd/devdraw')
-rw-r--r-- | src/cmd/devdraw/cocoa-screen-metal.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/devdraw/cocoa-screen-metal.m b/src/cmd/devdraw/cocoa-screen-metal.m index 049d1c5c..21123f16 100644 --- a/src/cmd/devdraw/cocoa-screen-metal.m +++ b/src/cmd/devdraw/cocoa-screen-metal.m @@ -373,6 +373,11 @@ struct Cursors { return YES; } +- (void)windowDidBecomeKey:(id)arg +{ + [myContent sendmouse:0]; +} + @end @implementation DevDrawView |