diff options
author | Omar Sandoval <osandov@osandov.com> | 2017-11-03 09:49:10 -0700 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2017-11-03 20:41:03 +0100 |
commit | 64ab2801fbbbcc028c359080ae4bd546fc871f67 (patch) | |
tree | fffbfd8865249d554f92bfdecdbf8afdd835b01f /dmenu.c | |
parent | f428f3e01a4ced5b1df07ddf913bb022692f8035 (diff) | |
download | dmenu-64ab2801fbbbcc028c359080ae4bd546fc871f67.tar.gz dmenu-64ab2801fbbbcc028c359080ae4bd546fc871f67.tar.bz2 dmenu-64ab2801fbbbcc028c359080ae4bd546fc871f67.zip |
Set class name on menu window
WM_CLASS is a standard ICCCM property which is used to identify windows.
Window managers and compositors use it to allow per-application
configurable behavior.
Diffstat (limited to 'dmenu.c')
-rw-r--r-- | dmenu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -545,6 +545,7 @@ setup(void) XIM xim; Window w, dw, *dws; XWindowAttributes wa; + XClassHint ch = {"dmenu", "dmenu"}; #ifdef XINERAMA XineramaScreenInfo *info; Window pw; @@ -613,6 +614,7 @@ setup(void) win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0, CopyFromParent, CopyFromParent, CopyFromParent, CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); + XSetClassHint(dpy, win, &ch); /* open input methods */ xim = XOpenIM(dpy, NULL, NULL, NULL); |