Browse Source

Set class name on menu window

WM_CLASS is a standard ICCCM property which is used to identify windows.
Window managers and compositors use it to allow per-application
configurable behavior.
master
Omar Sandoval 6 years ago
committed by Hiltjo Posthuma
parent
commit
64ab2801fb
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      dmenu.c

+ 2
- 0
dmenu.c View File

@@ -545,6 +545,7 @@ setup(void)
XIM xim;
Window w, dw, *dws;
XWindowAttributes wa;
XClassHint ch = {"dmenu", "dmenu"};
#ifdef XINERAMA
XineramaScreenInfo *info;
Window pw;
@@ -613,6 +614,7 @@ setup(void)
win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0,
CopyFromParent, CopyFromParent, CopyFromParent,
CWOverrideRedirect | CWBackPixel | CWEventMask, &swa);
XSetClassHint(dpy, win, &ch);

/* open input methods */
xim = XOpenIM(dpy, NULL, NULL, NULL);


Loading…
Cancel
Save