mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
small updates to improve TooltipWindow
This commit is contained in:
parent
f8e2eaccc3
commit
f2c0fda2e9
3 changed files with 206 additions and 200 deletions
|
|
@ -1454,9 +1454,10 @@ void NSViewComponentPeer::drawRect (NSRect r)
|
|||
bool NSViewComponentPeer::canBecomeKeyWindow()
|
||||
{
|
||||
// If running as a plugin, let the component decide whether it's going to allow the window to get focused.
|
||||
return JUCEApplication::getInstance() != 0
|
||||
|| (isValidPeer (this)
|
||||
&& ! getComponent()->getComponentPropertyBool ("juce_disallowFocus", false, false));
|
||||
return ((getStyleFlags() & juce::ComponentPeer::windowIsTemporary) == 0)
|
||||
&& (JUCEApplication::getInstance() != 0
|
||||
|| (isValidPeer (this)
|
||||
&& ! getComponent()->getComponentPropertyBool ("juce_disallowFocus", false, false)));
|
||||
}
|
||||
|
||||
bool NSViewComponentPeer::windowShouldClose()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue