pinentry-dmenu set for wm_class
This commit is contained in:
parent
52124a4fca
commit
17735039e9
@ -287,6 +287,7 @@ setup(void) {
|
|||||||
XIM xim;
|
XIM xim;
|
||||||
Window w, dw, *dws;
|
Window w, dw, *dws;
|
||||||
XWindowAttributes wa;
|
XWindowAttributes wa;
|
||||||
|
XClassHint ch = {"pinentry-dmenu", "prinentry-dmenu"};
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
XineramaScreenInfo *info;
|
XineramaScreenInfo *info;
|
||||||
Window pw;
|
Window pw;
|
||||||
@ -381,6 +382,7 @@ setup(void) {
|
|||||||
CWOverrideRedirect | CWBackPixel | CWBorderPixel | CWColormap | CWEventMask, &swa);
|
CWOverrideRedirect | CWBackPixel | CWBorderPixel | CWColormap | CWEventMask, &swa);
|
||||||
if (borderwidth)
|
if (borderwidth)
|
||||||
XSetWindowBorder(dpy, win, scheme[SchemeSelect][ColBg].pixel);
|
XSetWindowBorder(dpy, win, scheme[SchemeSelect][ColBg].pixel);
|
||||||
|
XSetClassHint(dpy, win, &ch);
|
||||||
|
|
||||||
/* Open input methods */
|
/* Open input methods */
|
||||||
xim = XOpenIM(dpy, NULL, NULL, NULL);
|
xim = XOpenIM(dpy, NULL, NULL, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user