Introduction
Introduction Statistics Contact Development Disclaimer Help
Set class name on menu window - dmenu - dynamic menu
git clone git://git.suckless.org/dmenu
Log
Files
Refs
README
LICENSE
---
commit 64ab2801fbbbcc028c359080ae4bd546fc871f67
parent f428f3e01a4ced5b1df07ddf913bb022692f8035
Author: Omar Sandoval <[email protected]>
Date: Fri, 3 Nov 2017 09:49:10 -0700
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:
M dmenu.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/dmenu.c b/dmenu.c
@@ -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, &s…
+ XSetClassHint(dpy, win, &ch);
/* open input methods */
xim = XOpenIM(dpy, NULL, NULL, NULL);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.