1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

DocumentWindow: Allow custom titlebar controls to respond to mouse

Prior to this change, the 'options' button in the StandaloneFilterWindow
border did not respond to mouse clicks on Windows.
This commit is contained in:
reuk 2024-06-04 13:29:57 +01:00
parent 473da34dfa
commit a904aa592f
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -325,6 +325,10 @@ auto DocumentWindow::findControlAtPoint (Point<float> pt) const -> WindowControl
return WindowControlKind::sizeTop;
}
for (const auto& c : getChildren())
if (c->contains (c->getLocalPoint (this, pt)))
return WindowControlKind::client;
return WindowControlKind::caption;
}