Fix a bug in ui::Manager putting the focus in non-visible widgets

We've to ask for isVisible() member function because it checks for
the visibility of the widget and its parents.
This commit is contained in:
David Capello 2014-08-12 08:10:02 -03:00
parent f0fa34cf4a
commit 400ab0c464

View File

@ -36,10 +36,11 @@
namespace ui {
#define ACCEPT_FOCUS(widget) \
(((widget)->flags & (JI_FOCUSSTOP | \
JI_DISABLED | \
JI_HIDDEN | \
JI_DECORATIVE)) == JI_FOCUSSTOP)
((((widget)->flags & (JI_FOCUSSTOP | \
JI_DISABLED | \
JI_HIDDEN | \
JI_DECORATIVE)) == JI_FOCUSSTOP) && \
((widget)->isVisible()))
#define DOUBLE_CLICK_TIMEOUT_MSECS 400