mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 12:40:34 +00:00
Fix clicking a combobox to close the popup in multiple windows
This commit is contained in:
parent
9d336ef259
commit
383adf2e0c
@ -388,7 +388,7 @@ bool ComboBox::onProcessMessage(Message* msg)
|
|||||||
|
|
||||||
MouseMessage* mouseMsg = static_cast<MouseMessage*>(msg);
|
MouseMessage* mouseMsg = static_cast<MouseMessage*>(msg);
|
||||||
Widget* pick = manager()->pickFromScreenPos(
|
Widget* pick = manager()->pickFromScreenPos(
|
||||||
mouseMsg->display()->nativeWindow()->pointFromScreen(mouseMsg->position()));
|
mouseMsg->display()->nativeWindow()->pointToScreen(mouseMsg->position()));
|
||||||
if (pick && pick->hasAncestor(this))
|
if (pick && pick->hasAncestor(this))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user