pinentry-dmenu set for wm_class

This commit is contained in:
mrdotx 2021-07-28 21:09:45 +02:00
parent 52124a4fca
commit 17735039e9
No known key found for this signature in database
GPG Key ID: 433F70E636E6EB87
1 changed files with 2 additions and 0 deletions

View File

@ -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);