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:
parent
473da34dfa
commit
a904aa592f
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue