mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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;
|
||||
}
|
||||
|
||||
- (void)windowDidBecomeKey:(id)arg
|
||||
{
|
||||
[myContent sendmouse:0];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation DevDrawView
|
||||
|
|
Loading…
Reference in a new issue