aboutsummaryrefslogtreecommitdiff
path: root/spectrogram.c
diff options
context:
space:
mode:
Diffstat (limited to 'spectrogram.c')
-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 */