From 256c1e3dcee279478e40ec5db1d8a7b2f0053306 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Wed, 12 Jun 2019 10:18:03 +0200 Subject: Renamed a patch --- patches/dmenu-wm_type.diff | 31 +++++++++++++++++++++++++++++++ patches/wm_type.diff | 31 ------------------------------- 2 files changed, 31 insertions(+), 31 deletions(-) create mode 100644 patches/dmenu-wm_type.diff delete mode 100644 patches/wm_type.diff diff --git a/patches/dmenu-wm_type.diff b/patches/dmenu-wm_type.diff new file mode 100644 index 0000000..e0ec320 --- /dev/null +++ b/patches/dmenu-wm_type.diff @@ -0,0 +1,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); diff --git a/patches/wm_type.diff b/patches/wm_type.diff deleted file mode 100644 index e0ec320..0000000 --- a/patches/wm_type.diff +++ /dev/null @@ -1,31 +0,0 @@ -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); -- cgit 1.4.1