Reduce use of forceActiveFocus, use focusscope etc. to automatically pass focus along the item tree.
Currently uses of forceActiveFocus lacks checking, may result in:
passwordinput failed to get focus, but unset workspace's focus so focus is set to root content item
greeter shows but later some surface becomes mapped so focus is robbed
Also fix that focus get lost when only there's one surface after switcher or some treeland controls get focus
This pull-request has been approved by: ZhongYic00
The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
- **[debian/deepin/OWNERS](https://github.com/linuxdeepin/treeland/blob/master/debian/deepin/OWNERS)**
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
Reduce use of
forceActiveFocus
, use focusscope etc. to automatically pass focus along the item tree. Currently uses offorceActiveFocus
lacks checking, may result in:Also fix that focus get lost when only there's one surface after switcher or some treeland controls get focus
based on https://github.com/vioken/waylib/pull/285