diff options
Diffstat (limited to 'src/tsar.c')
| -rw-r--r-- | src/tsar.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -7,6 +7,7 @@ #include <X11/Xft/Xft.h> #include <X11/Xlib.h> +#include <X11/Xatom.h> #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]; |
