fix focus locking bug
This commit is contained in:
parent
458e56fb4c
commit
23fe07d3d3
9 changed files with 34 additions and 21 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