Skip to content

Commit

Permalink
allow to refresh title of minimized window
Browse files Browse the repository at this point in the history
It allows to dynamically update status via client's title
of minimized window.

Signed-off-by: Vadym Kochan <[email protected]>
  • Loading branch information
vkochan committed Jan 7, 2021
1 parent e54a9ad commit f7b6a6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dvtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ draw(Client *c) {
redrawwin(c->window);
draw_content(c);
}
if (!isarrange(fullscreen) || sel == c)
if (!isarrange(fullscreen))
draw_border(c);
wnoutrefresh(c->window);
}
Expand Down Expand Up @@ -725,7 +725,7 @@ term_title_handler(Vt *term, const char *title) {
c->title[title ? sizeof(c->title) - 1 : 0] = '\0';
c->sync_title = false;
settitle(c);
if (!isarrange(fullscreen) || sel == c)
if (!isarrange(fullscreen))
draw_border(c);
applycolorrules(c);
}
Expand Down Expand Up @@ -2375,6 +2375,9 @@ main(int argc, char *argv[]) {
draw_content(c);
wnoutrefresh(c->window);
}
} else if (isvisible(c) && c->minimized) {
draw_border(c);
wnoutrefresh(c->window);
}
}

Expand Down

0 comments on commit f7b6a6d

Please sign in to comment.