commit 4d3c36cce4d70dfd88bd5e782e86141775577d30 from: Jacob Vosmaer via: Russ Cox date: Fri Apr 05 18:43:21 2019 UTC 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. commit - 047fd921744f39a82a86d9370e03f7af511e6e84 commit + 4d3c36cce4d70dfd88bd5e782e86141775577d30 blob - 049d1c5cda028757bf64c2280ad6445c946f1b10 blob + 21123f16323dd43bbb1c6629b598265ff2691e56 --- src/cmd/devdraw/cocoa-screen-metal.m +++ 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