linuxdeepin / treeland

20 stars 15 forks source link

Refactor: Adopt qt hierachical focus management #180

Closed ZhongYic00 closed 7 months ago

ZhongYic00 commented 8 months ago

Reduce use of forceActiveFocus, use focusscope etc. to automatically pass focus along the item tree. Currently uses of forceActiveFocus 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

deepin-ci-robot commented 8 months ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

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