summaryrefslogtreecommitdiffhomepage
path: root/patch/killunsel.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2019-10-06 23:43:51 +0200
committerbakkeby <[email protected]>2019-10-06 23:43:51 +0200
commit132ceee07309efc81476a55a1ff80ebb9b594291 (patch)
tree10f1e03020046458cb17f3fe67b2f78e27983e22 /patch/killunsel.c
parentac4269a4f28f29bad9a319993ad814830248f89a (diff)
downloaddwm-flexipatch-132ceee07309efc81476a55a1ff80ebb9b594291.tar.gz
dwm-flexipatch-132ceee07309efc81476a55a1ff80ebb9b594291.zip
Added statusallmons patch, fixed minor cross-compatibility issues for killunsel, fullscreen, noborder, tagintostack patches
Diffstat (limited to 'patch/killunsel.c')
-rw-r--r--patch/killunsel.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/patch/killunsel.c b/patch/killunsel.c
index 9e06d53..1e15d2b 100644
--- a/patch/killunsel.c
+++ b/patch/killunsel.c
@@ -8,7 +8,12 @@ killunsel(const Arg *arg)
for (i = selmon->clients; i; i = i->next) {
if (ISVISIBLE(i) && i != selmon->sel) {
- if (!sendevent(i, wmatom[WMDelete])) {
+ #if SYSTRAY_PATCH
+ if (!sendevent(i->win, wmatom[WMDelete], NoEventMask, wmatom[WMDelete], CurrentTime, 0, 0, 0))
+ #else
+ if (!sendevent(i, wmatom[WMDelete]))
+ #endif // SYSTRAY_PATCH
+ {
XGrabServer(dpy);
XSetErrorHandler(xerrordummy);
XSetCloseDownMode(dpy, DestroyAll);