summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md5
-rw-r--r--dwm.c25
-rw-r--r--patches.def.h6
3 files changed, 35 insertions, 1 deletions
diff --git a/README.md b/README.md
index cf8d3f3..f912ebe 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,8 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t
### Changelog:
+2020-10-26 - Added the \_NET\_CLIENT\_LIST\_STACKING patch
+
2020-09-29 - Added the on\_empty\_keys patch (ported from InstantOS)
2020-09-28 - Added the \_IS\_FLOATING patch (embedded in the EWMHTAGS patch)
@@ -412,6 +414,9 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t
- [movestack](https://dwm.suckless.org/patches/movestack/)
- allows you to move clients around in the stack and swap them with the master
+ - [netclientliststacking](https://github.com/bakkeby/patches/wiki/netclientliststacking)
+ - adds support for the \_NET\_CLIENT\_LIST\_STACKING atom, needed by certain applications like the Zoom video conferencing application
+
- [noborder](https://dwm.suckless.org/patches/noborder/)
- removes the border when there is only one window visible
diff --git a/dwm.c b/dwm.c
index 50ccb38..aa3b145 100644
--- a/dwm.c
+++ b/dwm.c
@@ -183,7 +183,11 @@ enum {
#if BAR_EWMHTAGS_PATCH
NetDesktopNames, NetDesktopViewport, NetNumberOfDesktops, NetCurrentDesktop,
#endif // BAR_EWMHTAGS_PATCH
- NetClientList, NetLast
+ NetClientList,
+ #if NET_CLIENT_LIST_STACKING_PATCH
+ NetClientListStacking,
+ #endif // NET_CLIENT_LIST_STACKING_PATCH
+ NetLast
}; /* EWMH atoms */
enum {
@@ -2264,6 +2268,10 @@ manage(Window w, XWindowAttributes *wa)
attachstack(c);
XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend,
(unsigned char *) &(c->win), 1);
+ #if NET_CLIENT_LIST_STACKING_PATCH
+ XChangeProperty(dpy, root, netatom[NetClientListStacking], XA_WINDOW, 32, PropModePrepend,
+ (unsigned char *) &(c->win), 1);
+ #endif // NET_CLIENT_LIST_STACKING_PATCH
XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
#if BAR_WINTITLEACTIONS_PATCH
@@ -3325,6 +3333,9 @@ setup(void)
netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False);
netatom[NetWMWindowType] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False);
netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False);
+ #if NET_CLIENT_LIST_STACKING_PATCH
+ netatom[NetClientListStacking] = XInternAtom(dpy, "_NET_CLIENT_LIST_STACKING", False);
+ #endif // NET_CLIENT_LIST_STACKING_PATCH
#if DECORATION_HINTS_PATCH
motifatom = XInternAtom(dpy, "_MOTIF_WM_HINTS", False);
#endif // DECORATION_HINTS_PATCH
@@ -3403,6 +3414,9 @@ setup(void)
setviewport();
#endif // BAR_EWMHTAGS_PATCH
XDeleteProperty(dpy, root, netatom[NetClientList]);
+ #if NET_CLIENT_LIST_STACKING_PATCH
+ XDeleteProperty(dpy, root, netatom[NetClientListStacking]);
+ #endif // NET_CLIENT_LIST_STACKING_PATCH
/* select events */
wa.cursor = cursor[CurNormal]->cursor;
wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask
@@ -4047,6 +4061,15 @@ updateclientlist()
XChangeProperty(dpy, root, netatom[NetClientList],
XA_WINDOW, 32, PropModeAppend,
(unsigned char *) &(c->win), 1);
+
+ #if NET_CLIENT_LIST_STACKING_PATCH
+ XDeleteProperty(dpy, root, netatom[NetClientListStacking]);
+ for (m = mons; m; m = m->next)
+ for (c = m->stack; c; c = c->snext)
+ XChangeProperty(dpy, root, netatom[NetClientListStacking],
+ XA_WINDOW, 32, PropModeAppend,
+ (unsigned char *) &(c->win), 1);
+ #endif // NET_CLIENT_LIST_STACKING_PATCH
}
int
diff --git a/patches.def.h b/patches.def.h
index 8ddcd23..fddadb2 100644
--- a/patches.def.h
+++ b/patches.def.h
@@ -644,6 +644,12 @@
*/
#define MOVESTACK_PATCH 0
+/* Adds support for the _NET_CLIENT_LIST_STACKING atom, needed by certain applications like the
+ * Zoom video conferencing application.
+ * https://github.com/bakkeby/patches/wiki/netclientliststacking/
+ */
+#define NET_CLIENT_LIST_STACKING_PATCH 0
+
/* Removes the border when there is only one window visible.
* https://dwm.suckless.org/patches/noborder/
*/