[wiki] [sites] [dwm][zoomswap] Do not delete pop-function || aleks

From: <git_AT_suckless.org>
Date: Sat, 19 Oct 2019 01:04:48 +0200

commit 2bc4d23b73e0f5b1ca4bfc0de4334255e34410eb
Author: aleks <aleks.stier_AT_icloud.com>
Date: Sat Oct 19 01:03:53 2019 +0200

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

diff --git a/dwm.suckless.org/patches/zoomswap/dwm-zoomswap-6.2.diff b/dwm.suckless.org/patches/zoomswap/dwm-zoomswap-6.2.diff
index f159d8bf..3c658e64 100644
--- a/dwm.suckless.org/patches/zoomswap/dwm-zoomswap-6.2.diff
+++ b/dwm.suckless.org/patches/zoomswap/dwm-zoomswap-6.2.diff
_AT_@ -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_AT_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
 _AT_@ -165,6 +165,7 @@ static void drawbar(Monitor *m);
_AT_@ -22,15 +22,7 @@ index 4465af1..b5bcf41 100644
  static void focus(Client *c);
  static void focusin(XEvent *e);
  static void focusmon(const Arg *arg);
-_AT_@ -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);
-_AT_@ -235,6 +235,7 @@ static int xerrorstart(Display *dpy, XErrorEvent *ee);
+_AT_@ -235,6 +236,7 @@ static int xerrorstart(Display *dpy, XErrorEvent *ee);
  static void zoom(const Arg *arg);
  
  /* variables */
_AT_@ -38,7 +30,7 @@ index 4465af1..b5bcf41 100644
  static const char broken[] = "broken";
  static char stext[256];
  static int screen;
-_AT_@ -780,6 +781,16 @@ expose(XEvent *e)
+_AT_@ -780,6 +782,16 @@ expose(XEvent *e)
                  drawbar(m);
  }
  
_AT_@ -55,23 +47,7 @@ index 4465af1..b5bcf41 100644
  void
  focus(Client *c)
  {
-_AT_@ -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)
- {
-_AT_@ -2114,14 +2116,38 @@ void
+_AT_@ -2114,14 +2126,38 @@ void
  zoom(const Arg *arg)
  {
  	Client *c = selmon->sel;
_AT_@ -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;
_AT_@ -115,5 +91,5 @@ index 4465af1..b5bcf41 100644
  
  int
 -- 
-2.22.0
+2.23.0
 
Received on Sat Oct 19 2019 - 01:04:48 CEST

This archive was generated by hypermail 2.3.0 : Sat Oct 19 2019 - 01:12:29 CEST