mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
Fix tooltips visibility (fix #770)
TooltipManager uses filters to intercept a kMouseEnterMessage, if we remove this kind of message for the TooltipManager itself (in sendMessage), we never get that message so we never show the tooltip. This problem was introduced in d1799c037abc011e79663892f52e0e2e0b5c5334 to fix a problem with comboboxes.
This commit is contained in:
parent
de3d4c3662
commit
549404c216
@ -1118,32 +1118,7 @@ GraphicsPtr Widget::getGraphics(const gfx::Rect& clip)
|
||||
|
||||
bool Widget::sendMessage(Message* msg)
|
||||
{
|
||||
ASSERT(msg != NULL);
|
||||
|
||||
// Filter out-of-sync messages
|
||||
switch (msg->type()) {
|
||||
|
||||
case kFocusEnterMessage:
|
||||
if (!hasFocus())
|
||||
return false;
|
||||
break;
|
||||
|
||||
case kFocusLeaveMessage:
|
||||
if (hasFocus())
|
||||
return false;
|
||||
break;
|
||||
|
||||
case kMouseEnterMessage:
|
||||
if (!hasMouse())
|
||||
return false;
|
||||
break;
|
||||
|
||||
case kMouseLeaveMessage:
|
||||
if (hasMouse())
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
||||
ASSERT(msg);
|
||||
return onProcessMessage(msg);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user