pinentry-dmenu

a pinentry program based on dmenu
git clone anongit@rnpnr.xyz:pinentry-dmenu.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 505181293439fe24f2ef608add2c679d53c9add6
Parent: 09602160b7434d213738d4630950862c1010abaa
Author: Omar Sandoval
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:
Mpinentry-dmenu.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c @@ -275,6 +275,7 @@ setup(void) { XIM xim; Window w, dw, *dws; XWindowAttributes wa; + XClassHint ch = {"pinentry-dmenu", "pinentry-dmenu"}; #ifdef XINERAMA XineramaScreenInfo *info; Window pw; @@ -353,6 +354,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);