diff options
author | Ankit Pandey <anpandey@protonmail.com> | 2022-12-11 16:44:48 -0800 |
---|---|---|
committer | Ronan Pigott <ronan@rjp.ie> | 2023-03-14 23:26:42 -0700 |
commit | 90c2d631e2dc4c7633bb8fcd92f300a4a2dffb86 (patch) | |
tree | 218db72a61c8e7b55cf39d241e51ee0780636670 /swaybar/tray | |
parent | ebeed7e303110403cc0134a1927008998caa8d96 (diff) |
root: Try to preserve relative positions of floating containers
This makes the behavior of floating containers more consistent with i3.
The coordinates of the container are scaled when the size of the
workspace it is on changes or when the container is moved
between workspaces on different outputs.
For scratchpad containers, add a new state that preserves the dimensions
of the last output the window appeared on. This is necessary because
after a container is hidden in the scratchpad, we expect it to be in the
same relative position on the output when it reappears. We can't just
use the container's attached workspace because that workspace's
dimensions might have been changed or the workspace as a whole could
have been destroyed.
Diffstat (limited to 'swaybar/tray')
0 files changed, 0 insertions, 0 deletions