aboutsummaryrefslogtreecommitdiff
path: root/src/dwm.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-03-15 20:38:34 +0100
committerFederico Angelilli <code@fedang.net>2024-03-15 20:38:34 +0100
commit1deadc4ac7901e1bc8f2047df580e1c14d7a0144 (patch)
treeb176f5374f0be400df9c2fd7a1ceacee75aa6004 /src/dwm.c
parentb84dd0ebddd7a40f7adc427ac85e3a65134e30be (diff)
Start reworking draw_paint and add per-button line width
Diffstat (limited to 'src/dwm.c')
-rw-r--r--src/dwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dwm.c b/src/dwm.c
index a2bf764..87d794e 100644
--- a/src/dwm.c
+++ b/src/dwm.c
@@ -398,7 +398,7 @@ static void change_tag_action(Button *btn)
ipc_run_command(dwm, "view", args);
}
-void dwm_register_tags(DwmIpc *dwm, Color color, Color selected, Color text_color, Color line_color)
+void dwm_register_tags(DwmIpc *dwm, Color color, Color selected, Color text_color)
{
if (dwm == NULL) return;
@@ -409,7 +409,7 @@ void dwm_register_tags(DwmIpc *dwm, Color color, Color selected, Color text_colo
// Tags button
for (int i = 0; i < 9; ++i) {
char text[] = { '1' + i, '\0' };
- dwm->tags[i] = button_simple_create(PANGO_ALIGN_LEFT, color, line_color);
+ dwm->tags[i] = button_simple_create(PANGO_ALIGN_LEFT, color);
button_simple_set_text(dwm->tags[i], g_strdup(text), text_color);
button_simple_set_action(dwm->tags[i], change_tag_action, dwm);
state_add_button(dwm->state, dwm->tags[i]);
@@ -418,7 +418,7 @@ void dwm_register_tags(DwmIpc *dwm, Color color, Color selected, Color text_colo
// This will set the tag names
ipc_get_tags(dwm);
- dwm->title = button_simple_create(PANGO_ALIGN_CENTER, color, line_color);
+ dwm->title = button_simple_create(PANGO_ALIGN_CENTER, color);
dwm->hidden_title = true;
// FIXME: Set the first tag