Use separate pixmaps for each edge of a container #4382
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.
Here is my current attempt at fixing #3479.
It does not work.
x_get_border_rectangles()
callscon_adjacent_borders()
which follows aNULL
pointer and crashes. I "fixed" that with a NULL pointer check, but now this function is giving me all empty rectangles for the borders:(No, I did not yet look at where that segfault comes from; yes, I can open a window, but it ends up with all-black frames)
So, this (draft) PR is just to document my current state and to ask:
How do I get the necessary size of the border pixmaps?
It seems like
con->window_rect
is the geometry of the "inner window" andcon->rect
is the geometry of the outer window (so I get width and height from this). Is this correct? Is there some existing helper that allows me to turn this into up to four rectangles describing the "area not covered by the inner window"? Isx_get_border_rectanges()
meant for something else?