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

[RFC] focus desktop when no window left #1598

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johanmalm
Copy link
Collaborator

Need couple of other patches first before this can work, so haven't tested yet.
Welcome thoughts on idea though.

@Consolatis
Copy link
Member

Consolatis commented Mar 9, 2024

At the current point I think this is too specific and relies on internals of desktop providing applications.

I am not quite sure how to solve this in another way though, I'd prefer some generic no-windows-available->focus-exclusive-then-ondemand-from-overlay-to-bottom instead. But that would then likely mean to randomly focus either a panel or the desktop depending on the startup order of the two (if they both use the background layer). Actually this PR will likely do the same.

Edit:
There is the namespace attribute.. I think some compositors actually use that for reasons like this. The values of that string are not standardized though. https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/blob/master/unstable/wlr-layer-shell-unstable-v1.xml?ref_type=heads#L67. I also don't know if wlroots even exposes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants