You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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, stacking on top of each other.
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.
The text was updated successfully, but these errors were encountered:
Closes#2586.
Adds a new constructor to `FloatingWindowManagerPolicy` to control focus
stealing prevention. This in a nutshell stops new windows from being
focused and raised. When used with xdg-activation-v1, this improves
security as external actors can't just steal focus by opening a new
window (in addition to the niceties xdg-activation-v1 adds to
usability).
TODO:
- [ ] ~Fix window offsetting. This is built off the position of the
focused window, so all windows after the second one open in the same
(x,y) position.~
Split off to #3695
- [ ] ~Fix windows closing in the order of opening instead of front to
back. see
#3693 (comment)
Moved to #3694
- [ ] ~Make sure Xwayland applications work properly. My focus has been
on Wayland applications so far.~
Xwayland doesn't seem to support xdg-activation at the moment?
- [x] Alt + tab predictably broken :/
Have to focus other applications before they work with alt + tab
- [x] Decorations are not pushed behind the focused window
- [ ] ~Need some way to focus applications launched via Mir
(Ctrl-Alt+t/T for example)~
Will be in its own PR (#3703)
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, stacking on top of each other.
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.
The text was updated successfully, but these errors were encountered: