-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Gaps create unequally sized windows #4296
Comments
To make sure inner gaps don't generate unequally sized windows always apply a total of one inner gap to all children. Doing just this would result in half-gaps around the workspace border so compensate for that by adding gaps to the workspace. Fixes swaywm#4296
I also use gaps and it appears to affect the left window. For example I use 2 Nemo windows. Whenever I type a filename into the current folder inside of Nemo, the left Nemo window size decreases. To reproduce my example you have to start Nemo as x11 (because of floating type-ahead feature). |
@copypaste10 That's a Nemo issue and has nothing to do with this one. Since it's not setting a parent for the window, it's being treated as a top level window and is being tiled.
|
Instead of tracking gaps per child apply gaps in two logical places: 1. In tiled containers use the layout code to add the gaps between windows. This is much simpler and guarantees that the sizing of children is correct. 2. In the workspace itself apply all the gaps around the edge. Here we're in the correct position to size inner and outer gaps correctly and decide on smart gaps in a single location. Fixes swaywm#4296
Instead of tracking gaps per child apply gaps in two logical places: 1. In tiled containers use the layout code to add the gaps between windows. This is much simpler and guarantees that the sizing of children is correct. 2. In the workspace itself apply all the gaps around the edge. Here we're in the correct position to size inner and outer gaps correctly and decide on smart gaps in a single location. Fixes swaywm#4296
Instead of tracking gaps per child apply gaps in two logical places: 1. In tiled containers use the layout code to add the gaps between windows. This is much simpler and guarantees that the sizing of children is correct. 2. In the workspace itself apply all the gaps around the edge. Here we're in the correct position to size inner and outer gaps correctly and decide on smart gaps in a single location. Fixes swaywm#4296
Instead of tracking gaps per child apply gaps in two logical places: 1. In tiled containers use the layout code to add the gaps between windows. This is much simpler and guarantees that the sizing of children is correct. 2. In the workspace itself apply all the gaps around the edge. Here we're in the correct position to size inner and outer gaps correctly and decide on smart gaps in a single location. Fixes swaywm#4296
Instead of tracking gaps per child apply gaps in two logical places: 1. In tiled containers use the layout code to add the gaps between windows. This is much simpler and guarantees that the sizing of children is correct. 2. In the workspace itself apply all the gaps around the edge. Here we're in the correct position to size inner and outer gaps correctly and decide on smart gaps in a single location. Fixes #4296
When using gaps windows that are the same size become unequally sized. To make it obvious just open two windows side by side a do something like:
The end result will be something like this:
While large gaps make this very noticeable it happens on any sized gap.
The text was updated successfully, but these errors were encountered: