Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus policy #22

Open
plfiorini opened this issue Sep 24, 2022 · 1 comment
Open

Focus policy #22

plfiorini opened this issue Sep 24, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@plfiorini
Copy link
Member

Shell surface items only have the "click to focus" policy but we need more, like "focus follows mouse".
We also want an automatic mode that will allow the compositor to choose: lock screens will need that, in order for the surface layout to automatically give them focus.

@plfiorini plfiorini added the enhancement New feature or request label Sep 24, 2022
@plfiorini plfiorini added this to the 1.0.0 milestone Sep 24, 2022
@plfiorini plfiorini self-assigned this Sep 24, 2022
@plfiorini
Copy link
Member Author

plfiorini commented Sep 24, 2022

Actually, now that I remember: I had implemented this in WaylandShell but it only has automatic and manual policies.
Guess that manual could be expanded into more detailed policies such as those mentioned above (click to focus and focus follows mouse).

Create a QQuickItem::FocusPolicy enum with ClickToFocus and FocusFollowsMouse instead of the focusOnClick property.

plfiorini added a commit that referenced this issue Sep 24, 2022
Each and every shell surface now expose the shell it belongs to, so we
can find it without casting to the actual implementation.

Issue: #22
plfiorini added a commit that referenced this issue Sep 24, 2022
Our surface layout handles all king of surfaces, not only layer surfaces
so we should give focus to those that demand their focus to be
automatically set.

Issue: #22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant