mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 03:16:58 +00:00
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:
parent
f0fa34cf4a
commit
400ab0c464
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user