diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-12 10:10:01 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-12 10:10:01 +0200 |
commit | 747a9c38699d245441e0aa4b91f04a5f09330559 (patch) | |
tree | 975c763383af78e85c94b3969dcc210b9a3f55c0 /dmenu.c | |
parent | Changed default font (diff) | |
download | dmenu-747a9c38699d245441e0aa4b91f04a5f09330559.tar.gz dmenu-747a9c38699d245441e0aa4b91f04a5f09330559.tar.bz2 dmenu-747a9c38699d245441e0aa4b91f04a5f09330559.zip |
Added more extensive X window info [Patch]
Diffstat (limited to 'dmenu.c')
-rw-r--r-- | dmenu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dmenu.c b/dmenu.c index e7ce2fd..665ade5 100644 --- a/dmenu.c +++ b/dmenu.c @@ -45,7 +45,7 @@ static struct item *matches, *matchend; static struct item *prev, *curr, *next, *sel; static int mon = -1, screen; -static Atom clip, utf8; +static Atom clip, utf8, type, dock; static Display *dpy; static Window root, parentwin, win; static XIC xic; @@ -733,6 +733,8 @@ setup(void) clip = XInternAtom(dpy, "CLIPBOARD", False); utf8 = XInternAtom(dpy, "UTF8_STRING", False); + type = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False); + dock = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DOCK", False); /* calculate menu geometry */ bh = drw->fonts->h + 2; @@ -791,6 +793,8 @@ setup(void) CopyFromParent, CopyFromParent, CopyFromParent, CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); XSetClassHint(dpy, win, &ch); + XChangeProperty(dpy, win, type, XA_ATOM, 32, PropModeReplace, + (unsigned char *) &dock, 1); /* input methods */ |