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.
Currently, the window border routine draws border of
1px
and ignores theceWindowBorderWidth
variable (which is indeed set to1
). The border should look wrong, because it shouldn't be drawn in the left part of the window, as the routine doesn't account for it.To my surprise, however, windows had a border on the left part. After a while I figured it only looks right because the antialiasing makes all
1px
lines as2px
. I noticed this while triying to fix the titlebar border being noticeably2px
thick. Here is a comparison with no shadow and a highlighted border:Notice how the titlebar border "leaks" onto the window border for a few pixels, and how all the borders except the title bar are transparent. Also the titlebar separator cuts the window border. Here is the window with my patch, removing antialiasing and accounting for a window border.
The borders aren't transparent anymore, the titlebar border is the same thickness as the rest, and the title bar stops where it should. One thing that is missing is the fact that the border is
1px
regardless of theceWindowBorderSize
because the pen is not set.