From 302dac831a6b13660752f95569fc03642876cb4d Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Sun, 1 Mar 2026 15:02:24 -0500 Subject: fixes and stuff --- src/tsar.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/tsar.c') diff --git a/src/tsar.c b/src/tsar.c index 1570b92..da21ad3 100644 --- a/src/tsar.c +++ b/src/tsar.c @@ -7,6 +7,7 @@ #include #include +#include #include "pipe.h" #include "bardata.h" @@ -75,7 +76,13 @@ void init_x(void) { &win_attr ); - XMapRaised(display, win); + XClassHint class_hint; + class_hint.res_name = "tsarbar"; + class_hint.res_class = "Bar"; + + XSetClassHint(display, win, &class_hint); + + XMapWindow(display, win); load_font("monospace:size=10"); @@ -126,7 +133,6 @@ int main(void) { XResizeWindow(display, win, width, bar_height); - int x = 0; for (int i = 0; i < left_size; i++) { comp_t* comp = comps_left[i]; -- cgit v1.3-2-g0d8e