aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-06-09 20:05:33 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-06-09 20:05:33 +0000
commit298f4900e5942ddbb039901be2a7f4585ab972e0 (patch)
treed10c89be5df4f04705b7c584cd0f861f8aa2dc06
parent9a62be47eae689cb9cb4d180773cf65d37b8b0c9 (diff)
add class hint
-rw-r--r--spectrogram.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/spectrogram.c b/spectrogram.c
index b7f0804..bc99b57 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -349,6 +349,7 @@ main(int argc, char **argv)
Atom delwin;
Atom nhints;
XSizeHints *hints;
+ XClassHint *class;
int scr;
struct panel *left, *right;
@@ -397,6 +398,13 @@ main(int argc, char **argv)
0, 0, width, height, 0, white, black);
XStoreName(dsp, win, __progname);
+ class = XAllocClassHint();
+ if (class) {
+ class->res_name = __progname;
+ class->res_class = __progname;
+ XSetClassHint(dsp, win, class);
+ XFree(class);
+ }
XSelectInput(dsp, win, KeyPressMask|StructureNotifyMask);
/* catch delete window */