diff options
author | tsxv478 <atci39@rambler.ru> | 2024-01-13 12:16:20 +0300 |
---|---|---|
committer | tsxv478 <atci39@rambler.ru> | 2024-01-13 12:16:20 +0300 |
commit | b3b29d35e543e08ac449a5831e2c916745a8b0a3 (patch) | |
tree | 24b696503628c44045d73e36106886c5e89491cf | |
parent | b126dcea02aa3d97dee9cbc0ed6e4773d00ca02f (diff) |
different class when centered
-rw-r--r-- | dmenu.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -626,6 +626,7 @@ setup(void) Window w, dw, *dws; XWindowAttributes wa; XClassHint ch = {"dmenu", "dmenu"}; + XClassHint chc = {"dmenu_c", "dmenu_c"}; #ifdef XINERAMA XineramaScreenInfo *info; Window pw; @@ -711,8 +712,11 @@ setup(void) CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); if (border_width) XSetWindowBorder(dpy, win, scheme[SchemeSel][ColBg].pixel); - XSetClassHint(dpy, win, &ch); + if (centered) + XSetClassHint(dpy, win, &chc); + else + XSetClassHint(dpy, win, &ch); /* input methods */ if ((xim = XOpenIM(dpy, NULL, NULL, NULL)) == NULL) |