Commit Diff
- Commit:
4d3c36cce4d70dfd88bd5e782e86141775577d30
- From:
- Jacob Vosmaer <contact@jacobvosmaer.nl>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
- Message:
- 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.
- Actions:
- Patch | Tree
--- 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