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.
This commit is contained in:
Jacob Vosmaer 2019-04-05 20:43:21 +02:00 committed by Russ Cox
parent 047fd92174
commit 4d3c36cce4

View file

@ -373,6 +373,11 @@ struct Cursors {
return YES;
}
- (void)windowDidBecomeKey:(id)arg
{
[myContent sendmouse:0];
}
@end
@implementation DevDrawView