diff options
| -rw-r--r-- | dmenu.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -545,6 +545,7 @@ setup(void) | |||
| 545 | XIM xim; | 545 | XIM xim; |
| 546 | Window w, dw, *dws; | 546 | Window w, dw, *dws; |
| 547 | XWindowAttributes wa; | 547 | XWindowAttributes wa; |
| 548 | XClassHint ch = {"dmenu", "dmenu"}; | ||
| 548 | #ifdef XINERAMA | 549 | #ifdef XINERAMA |
| 549 | XineramaScreenInfo *info; | 550 | XineramaScreenInfo *info; |
| 550 | Window pw; | 551 | Window pw; |
| @@ -613,6 +614,7 @@ setup(void) | |||
| 613 | win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0, | 614 | win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0, |
| 614 | CopyFromParent, CopyFromParent, CopyFromParent, | 615 | CopyFromParent, CopyFromParent, CopyFromParent, |
| 615 | CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); | 616 | CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); |
| 617 | XSetClassHint(dpy, win, &ch); | ||
| 616 | 618 | ||
| 617 | /* open input methods */ | 619 | /* open input methods */ |
| 618 | xim = XOpenIM(dpy, NULL, NULL, NULL); | 620 | xim = XOpenIM(dpy, NULL, NULL, NULL); |
