From: Andreas Fink Date: Mon, 28 Dec 2009 19:03:14 +0000 (+0000) Subject: *fix* issue 185 X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b9ceca0af9fbad70fe14f087ccdda72d8c7e7cf6;p=chaz%2Ftint2 *fix* issue 185 --- diff --git a/src/panel.c b/src/panel.c index a5a62dd..3064a20 100644 --- a/src/panel.c +++ b/src/panel.c @@ -472,6 +472,13 @@ void set_panel_properties(Panel *p) size_hints.min_width = size_hints.max_width = p->area.width; size_hints.min_height = size_hints.max_height = p->area.height; XSetWMNormalHints(server.dsp, p->main_win, &size_hints); + + // Set WM_CLASS + XClassHint* classhint = XAllocClassHint(); + classhint->res_name = "tint2"; + classhint->res_class = "Tint2"; + XSetClassHint(server.dsp, p->main_win, classhint); + XFree(classhint); }