-
Notifications
You must be signed in to change notification settings - Fork 0
/
dmenu-wm_type.diff
31 lines (27 loc) · 1.11 KB
/
dmenu-wm_type.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Index: dmenu-patches/dmenu/dmenu.c
===================================================================
--- dmenu-patches.orig/dmenu/dmenu.c
+++ dmenu-patches/dmenu/dmenu.c
@@ -49,7 +49,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;
@@ -690,6 +690,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;
@@ -747,6 +749,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);
/* open input methods */
xim = XOpenIM(dpy, NULL, NULL, NULL);