undo sending mouse event to both the parent and widget itself, forgot that that's exactly something we don't want to do
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
4ca11145f1
commit
a0e2ec7f57
1 changed files with 2 additions and 3 deletions
|
|
@ -139,7 +139,8 @@ static NSPoint pointFlip(NSPoint point) {
|
|||
c->rect.origin.y -= offset;
|
||||
} else {
|
||||
if ([c->application respondsToSelector:@selector(setActivationPolicy:)]) {
|
||||
[c->application setActivationPolicy:0 /* NSApplicationActivationPolicyRegular */];
|
||||
[c->application
|
||||
setActivationPolicy:0 /* NSApplicationActivationPolicyRegular */];
|
||||
}
|
||||
[c->application activateIgnoringOtherApps:true];
|
||||
[c->window makeFirstResponder:c->view];
|
||||
|
|
@ -410,10 +411,8 @@ static NSPoint pointFlip(NSPoint point) {
|
|||
mouse.point.y = mousePoint.y;
|
||||
|
||||
if (isDown) {
|
||||
MwLLDispatch(this, down, &mouse);
|
||||
MwLLDispatch(ll, down, &mouse);
|
||||
} else {
|
||||
MwLLDispatch(this, up, &mouse);
|
||||
MwLLDispatch(ll, up, &mouse);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue