mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Fix many border opacity issues
This commit is contained in:
parent
b1645fb352
commit
ebb0d051db
3 changed files with 120 additions and 78 deletions
|
|
@ -43,13 +43,10 @@ void view_destroy(struct sway_view *view) {
|
|||
}
|
||||
list_free(view->marks);
|
||||
|
||||
if (view->marks_focused) {
|
||||
// If one is set then all of these are set
|
||||
wlr_texture_destroy(view->marks_focused);
|
||||
wlr_texture_destroy(view->marks_focused_inactive);
|
||||
wlr_texture_destroy(view->marks_unfocused);
|
||||
wlr_texture_destroy(view->marks_urgent);
|
||||
}
|
||||
wlr_texture_destroy(view->marks_focused);
|
||||
wlr_texture_destroy(view->marks_focused_inactive);
|
||||
wlr_texture_destroy(view->marks_unfocused);
|
||||
wlr_texture_destroy(view->marks_urgent);
|
||||
|
||||
container_destroy(view->swayc);
|
||||
|
||||
|
|
@ -803,6 +800,11 @@ static void update_marks_texture(struct sway_view *view,
|
|||
char *buffer = calloc(len + 1, 1);
|
||||
char *part = malloc(len + 1);
|
||||
|
||||
if (!sway_assert(buffer && part, "Unable to allocate memory")) {
|
||||
free(buffer);
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < view->marks->length; ++i) {
|
||||
char *mark = view->marks->items[i];
|
||||
if (mark[0] != '_') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue