fix focus locking bug
This commit is contained in:
parent
c82ad3c150
commit
1bbce78a2e
8 changed files with 33 additions and 20 deletions
|
|
@ -58,7 +58,9 @@ void RootWidget::processFrame(EventHandler* events, const RectF& screenArea) {
|
|||
updateAreaCache(&mRoot, false);
|
||||
|
||||
// trigger some widgets by moise pointer
|
||||
mUpdateManager.handleFocusChanges(&mRoot, *events);
|
||||
auto prevFocus = mUpdateManager.getFocusWidget();
|
||||
auto newFocus = mUpdateManager.findFocusWidget(&mRoot, *events);
|
||||
mUpdateManager.handleFocusChanges(newFocus, prevFocus);
|
||||
|
||||
// check triggered widgets for removal
|
||||
mUpdateManager.clean();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue