]> Dogcows Code - chaz/tint2/commitdiff
*fix* issue 185
authorAndreas Fink <andreas.fink85@googlemail.com>
Mon, 28 Dec 2009 19:03:14 +0000 (19:03 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Mon, 28 Dec 2009 19:03:14 +0000 (19:03 +0000)
src/panel.c

index a5a62dd987aaea8a6129901d456938d1a2b868b5..3064a201f0057024e4b5839511def7dc3b6e8a40 100644 (file)
@@ -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);
 }
 
 
This page took 0.022982 seconds and 4 git commands to generate.