Fix wingpanel potentially overlapping windows #198
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #130
I noticed that sometimes my wingpanel would overlap left/right tiled windows. Looking into it it seemed like the allocated height of the panel changed from 24 (the requested height) to 30. For some people, in some cases this switch would happen after the slide in animation where the truts? are updated.
I filtered out all indicators and it seemed like these indicators caused the panel's height to go from 24 to 30:
You can also see that those 4 have a margin above and below:
![screenshot from 2019-02-25 22-49-18](https://user-images.githubusercontent.com/523210/53371128-b9910780-394f-11e9-9844-667bf17cb8e7.png)
I'm assuming we actually like the 30, so this PR makes sure we start of at 30.
For comparison:
![screenshot from 2019-02-25 22-03-15](https://user-images.githubusercontent.com/523210/53368575-76339a80-3949-11e9-87bf-d8c6121016a9.png)
![screenshot from 2019-02-25 22-05-10](https://user-images.githubusercontent.com/523210/53368584-7af84e80-3949-11e9-99ca-8fab83f880a1.png)
24 height:
30 height: