diff options
author | 2018-09-23 11:36:16 +1000 | |
---|---|---|
committer | 2018-09-23 11:36:16 +1000 | |
commit | 64445f421452b841eb124f7f89e06084b05b1a54 (patch) | |
tree | 46b3bd642ce0e09a2a048fe85224494daec1a80c /swaybg | |
parent | Merge pull request #2688 from RyanDwyer/exec-commands-without-focus (diff) | |
download | sway-64445f421452b841eb124f7f89e06084b05b1a54.tar.gz sway-64445f421452b841eb124f7f89e06084b05b1a54.tar.zst sway-64445f421452b841eb124f7f89e06084b05b1a54.zip |
Prevent sticky containers from jumping on workspace switch
If you have swaybar docked to the top, and you create a floating sticky
container and switch workspaces on the same output, the sticky container
would move down by the height of swaybar on each switch.
This happens because when creating the workspace we set the dimensions
to the same as the output, then the subsequent arrange corrects it.
During this arrange, floating containers are translated so they stay
relative to the workspace. This translation needs to not occur for the
initial arrange.
This patch makes workspaces have a zero width and height when first
created, so we can detect whether this is the initial arrange and avoid
translating the floating containers if so.
Diffstat (limited to 'swaybg')
0 files changed, 0 insertions, 0 deletions