1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 11:56:44 +02:00

code cleanup

This commit is contained in:
Jfreegman
2014-06-11 18:47:18 -04:00
parent 31acdcada3
commit 31a2e648c5
6 changed files with 37 additions and 951 deletions

View File

@ -352,25 +352,28 @@ static void draw_bar(void)
int i;
for (i = 0; i < MAX_WINDOWS_NUM; ++i) {
if (windows[i].active) {
if (windows + i == active_window) {
#ifdef URXVT_FIX
attron(A_BOLD | COLOR_PAIR(GREEN));
} else {
#endif
attron(A_BOLD);
}
if (!windows[i].active)
continue;
draw_window_tab(windows[i]);
if (windows + i == active_window)
if (windows + i == active_window) {
#ifdef URXVT_FIX
attroff(A_BOLD | COLOR_PAIR(GREEN));
} else {
attron(A_BOLD | COLOR_PAIR(GREEN));
else
#endif
attroff(A_BOLD);
}
}
attron(A_BOLD);
draw_window_tab(windows[i]);
if (windows + i == active_window)
#ifdef URXVT_FIX
attroff(A_BOLD | COLOR_PAIR(GREEN));
else
#endif
attroff(A_BOLD);
}
refresh();