Fix many border opacity issues

This commit is contained in:
Ryan Dwyer 2018-05-15 23:29:54 +10:00
parent b1645fb352
commit ebb0d051db
3 changed files with 120 additions and 78 deletions

View file

@ -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] != '_') {