Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.0
-
None
-
-
2c9968bee (dev), 0d5865375 (6.8)
Description
Two simultaneously opened onscreen keyboards could work incorrectly
Condition:
Two instances of QWaylandSeat, two opened onscreen keyboard on device with two screens.
Problem scenario:
When invoking:
void QWaylandQuickItem::takeFocus(QWaylandSeat *device)
correct QWaylandSeat (NOT a defaultSeat) passed, but also invoked:
void QQuickItem::forceActiveFocus(Qt::FocusReason reason)
which could finally emit 'activeFocusChanged', and, since in commit for QTBUG-108645 we have code:
connect(this, &QQuickItem::activeFocusChanged, this, &QWaylandQuickItem::updateFocus);
eventually 'updateFocus' ivoked, as an result 'setKeyboardFocus' called for wrong QWaylandSeat (defaultSeat)
As a result on one of onscreen keyboards some of keys not working