From 17735039e971c953c2bf711e5fa8ed9922f67b1c Mon Sep 17 00:00:00 2001 From: mrdotx Date: Wed, 28 Jul 2021 21:09:45 +0200 Subject: [PATCH] pinentry-dmenu set for wm_class --- pinentry-dmenu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c index a0d0e24..bc2d434 100644 --- a/pinentry-dmenu.c +++ b/pinentry-dmenu.c @@ -287,6 +287,7 @@ setup(void) { XIM xim; Window w, dw, *dws; XWindowAttributes wa; + XClassHint ch = {"pinentry-dmenu", "prinentry-dmenu"}; #ifdef XINERAMA XineramaScreenInfo *info; Window pw; @@ -381,6 +382,7 @@ setup(void) { CWOverrideRedirect | CWBackPixel | CWBorderPixel | CWColormap | CWEventMask, &swa); if (borderwidth) XSetWindowBorder(dpy, win, scheme[SchemeSelect][ColBg].pixel); + XSetClassHint(dpy, win, &ch); /* Open input methods */ xim = XOpenIM(dpy, NULL, NULL, NULL);