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:
parent
047fd92174
commit
4d3c36cce4
@ -373,6 +373,11 @@ struct Cursors {
|
|||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)windowDidBecomeKey:(id)arg
|
||||||
|
{
|
||||||
|
[myContent sendmouse:0];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation DevDrawView
|
@implementation DevDrawView
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user