sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 2bc4d23b73e0f5b1ca4bfc0de4334255e34410eb
parent 888e4aa60ca4ed762abd63596be4921359337ece
Author: aleks <aleks.stier@icloud.com>
Date:   Sat, 19 Oct 2019 01:03:53 +0200

[dwm][zoomswap] Do not delete pop-function

Diffstat:
Mdwm.suckless.org/patches/zoomswap/dwm-zoomswap-6.2.diff | 44++++++++++----------------------------------
1 file changed, 10 insertions(+), 34 deletions(-)

diff --git a/dwm.suckless.org/patches/zoomswap/dwm-zoomswap-6.2.diff b/dwm.suckless.org/patches/zoomswap/dwm-zoomswap-6.2.diff @@ -1,17 +1,17 @@ -From 9fa1edf9f616e2579a386e8d51e0690f0a96e78c Mon Sep 17 00:00:00 2001 +From 3867ef5a68e15a4faff377ddbc8371853de4a800 Mon Sep 17 00:00:00 2001 From: aleks <aleks.stier@icloud.com> -Date: Mon, 22 Jul 2019 13:06:50 +0200 +Date: Sat, 19 Oct 2019 00:56:21 +0200 Subject: [PATCH] Put master to exact position of zoomed client The default behaviour when zooming a client is to put the previous master on top of the client-stack. This patch puts the master to the exact position of the zoomed client in the stack. --- - dwm.c | 54 ++++++++++++++++++++++++++++++++++++++++-------------- - 1 file changed, 40 insertions(+), 14 deletions(-) + dwm.c | 44 ++++++++++++++++++++++++++++++++++++++++---- + 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/dwm.c b/dwm.c -index 4465af1..b5bcf41 100644 +index 4465af1..1719b36 100644 --- a/dwm.c +++ b/dwm.c @@ -165,6 +165,7 @@ static void drawbar(Monitor *m); @@ -22,15 +22,7 @@ index 4465af1..b5bcf41 100644 static void focus(Client *c); static void focusin(XEvent *e); static void focusmon(const Arg *arg); -@@ -184,7 +185,6 @@ static void monocle(Monitor *m); - static void motionnotify(XEvent *e); - static void movemouse(const Arg *arg); - static Client *nexttiled(Client *c); --static void pop(Client *); - static void propertynotify(XEvent *e); - static void quit(const Arg *arg); - static Monitor *recttomon(int x, int y, int w, int h); -@@ -235,6 +235,7 @@ static int xerrorstart(Display *dpy, XErrorEvent *ee); +@@ -235,6 +236,7 @@ static int xerrorstart(Display *dpy, XErrorEvent *ee); static void zoom(const Arg *arg); /* variables */ @@ -38,7 +30,7 @@ index 4465af1..b5bcf41 100644 static const char broken[] = "broken"; static char stext[256]; static int screen; -@@ -780,6 +781,16 @@ expose(XEvent *e) +@@ -780,6 +782,16 @@ expose(XEvent *e) drawbar(m); } @@ -55,23 +47,7 @@ index 4465af1..b5bcf41 100644 void focus(Client *c) { -@@ -1199,15 +1210,6 @@ nexttiled(Client *c) - return c; - } - --void --pop(Client *c) --{ -- detach(c); -- attach(c); -- focus(c); -- arrange(c->mon); --} -- - void - propertynotify(XEvent *e) - { -@@ -2114,14 +2116,38 @@ void +@@ -2114,14 +2126,38 @@ void zoom(const Arg *arg) { Client *c = selmon->sel; @@ -103,7 +79,7 @@ index 4465af1..b5bcf41 100644 + /* swap windows instead of pushing the previous one down */ + if (c != cold && at) { + prevzoom = cold; -+ if(cold && at != cold) { ++ if (cold && at != cold) { + detach(cold); + cold->next = at->next; + at->next = cold; @@ -115,5 +91,5 @@ index 4465af1..b5bcf41 100644 int -- -2.22.0 +2.23.0