1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

small updates to improve TooltipWindow

This commit is contained in:
jules 2009-08-07 09:05:56 +00:00
parent f8e2eaccc3
commit f2c0fda2e9
3 changed files with 206 additions and 200 deletions

View file

@ -74870,7 +74870,9 @@ void TooltipWindow::showFor (Component* const c, const String& tip)
const String TooltipWindow::getTipFor (Component* const c)
{
if (c->isValidComponent() && Process::isForegroundProcess())
if (c->isValidComponent()
&& Process::isForegroundProcess()
&& ! Component::isMouseButtonDownAnywhere())
{
TooltipClient* const ttc = dynamic_cast <TooltipClient*> (c);
@ -269734,9 +269736,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()