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

Window offsetting shouldn't assume new windows are automatically focused #3695

Open
tarek-y-ismail opened this issue Dec 6, 2024 · 0 comments

Comments

@tarek-y-ismail
Copy link
Contributor

Related: #2586, #3693

Our current implementation of window offsetting assumes that the offset is applied relative to the position of the currently focused window. This works when automatically focusing newly opened windows as each window is offset slightly from the one before it. But with focus stealing prevention, that is not the case as multiple windows could be spawned without changing focus.

This might potentially cause clients that don't support xdg-activation to open behind the currently focused window, being completely occluded; or in the case of similarly sized windows, to completely occlude the windows behind them.

A reasonable implementation should take into account all visible windows and make an attempt to position new windows such that they don't occlude existing windows. In case this is not possible (fullscreen application, too many windows open), it would be acceptable to occlude an existing window.

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

No branches or pull requests

1 participant