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
1 changed files with 5 additions and 0 deletions
|
|
@ -373,6 +373,11 @@ struct Cursors {
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)windowDidBecomeKey:(id)arg
|
||||||
|
{
|
||||||
|
[myContent sendmouse:0];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation DevDrawView
|
@implementation DevDrawView
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue