The update functions already check if the window related enabled options
are set. Just call it directly, instead. As a consequence, the wrapper
function can now be deleted.
}
void
-bar_check_opts(void)
-{
- if (title_class_enabled || title_name_enabled || window_name_enabled)
- bar_update();
-}
-
-void
bar_signal(int sig)
{
bar_alarm = 1;
PropModeReplace, (unsigned char *)&win->id, 1);
}
- bar_check_opts();
+ bar_update();
}
void
if (win == NULL) {
/* if there are no windows clear the status-bar */
- bar_check_opts();
+ bar_update();
return;
}
X(win), Y(win), WIDTH(win), HEIGHT(win));
#endif
case XA_WM_CLASS:
- if (title_name_enabled || title_class_enabled)
- bar_update();
- break;
case XA_WM_NAME:
- if (window_name_enabled)
- bar_update();
+ bar_update();
break;
default:
break;