[wiki] [sites] [dwm][clientopacity] correct enum element order within patch || blatzfab

From: <git_AT_suckless.org>
Date: Sun, 12 Jun 2022 18:47:55 +0200

commit a9b772c2785a9828a700f1672508f6fed36af7fa
Author: blatzfab <fabianblatz_AT_gmail.com>
Date: Sun Jun 12 18:46:19 2022 +0200

    [dwm][clientopacity] correct enum element order within patch

diff --git a/dwm.suckless.org/patches/clientopacity/dwm-clientopacity-20201012-61bb8b2.diff b/dwm.suckless.org/patches/clientopacity/dwm-clientopacity-20220612-d3f93c7.diff
similarity index 90%
rename from dwm.suckless.org/patches/clientopacity/dwm-clientopacity-20201012-61bb8b2.diff
rename to dwm.suckless.org/patches/clientopacity/dwm-clientopacity-20220612-d3f93c7.diff
index a1e59f7e..63579a03 100644
--- a/dwm.suckless.org/patches/clientopacity/dwm-clientopacity-20201012-61bb8b2.diff
+++ b/dwm.suckless.org/patches/clientopacity/dwm-clientopacity-20220612-d3f93c7.diff
_AT_@ -1,7 +1,7 @@
-From e5db0708b4da80eee897588b96d6098243406075 Mon Sep 17 00:00:00 2001
-From: Fabian Blatz <fabian.blatz_AT_gmail.com>
-Date: Mon, 12 Oct 2020 11:26:51 +0000
-Subject: [PATCH] adds opacity on a per client basis
+From d59a5a5409e4078c2c1b5ead786e1312d431c9a8 Mon Sep 17 00:00:00 2001
+From: blatzfab <fabian.blatz_AT_hansgrohe.com>
+Date: Sun, 12 Jun 2022 18:42:28 +0200
+Subject: [PATCH] [PATCH] adds opacity on a per client basis
 
 ---
  config.def.h | 10 +++++++---
_AT_@ -9,7 +9,7 @@ Subject: [PATCH] adds opacity on a per client basis
  2 files changed, 43 insertions(+), 4 deletions(-)
 
 diff --git a/config.def.h b/config.def.h
-index 1c0b587..7addf50 100644
+index a2ac963..4b6903c 100644
 --- a/config.def.h
 +++ b/config.def.h
 _AT_@ -5,6 +5,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
_AT_@ -34,7 +34,7 @@ index 1c0b587..7addf50 100644
  };
  
  /* layout(s) */
-_AT_@ -84,6 +86,8 @@ static Key keys[] = {
+_AT_@ -85,6 +87,8 @@ static Key keys[] = {
          { MODKEY, XK_period, focusmon, {.i = +1 } },
          { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
          { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
_AT_@ -44,7 +44,7 @@ index 1c0b587..7addf50 100644
          TAGKEYS( XK_2, 1)
          TAGKEYS( XK_3, 2)
 diff --git a/dwm.c b/dwm.c
-index 664c527..15014c0 100644
+index 5646a5c..591dff9 100644
 --- a/dwm.c
 +++ b/dwm.c
 _AT_@ -62,7 +62,7 @@ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
_AT_@ -52,7 +52,7 @@ index 664c527..15014c0 100644
  enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
         NetWMFullscreen, NetActiveWindow, NetWMWindowType,
 - NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
-+ NetWMWindowTypeDialog, NetClientList, NetLast, NetWMWindowsOpacity }; /* EWMH atoms */
++ NetWMWindowTypeDialog, NetClientList, NetWMWindowsOpacity, NetLast }; /* EWMH atoms */
  enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */
  enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
         ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
_AT_@ -104,7 +104,7 @@ index 664c527..15014c0 100644
                          for (m = mons; m && m->num != r->monitor; m = m->next);
                          if (m)
                                  c->mon = m;
-_AT_@ -456,6 +462,21 @@ buttonpress(XEvent *e)
+_AT_@ -458,6 +464,21 @@ buttonpress(XEvent *e)
                          buttons[i].func(click == ClkTagBar && buttons[i].arg.i == 0 ? &arg : &buttons[i].arg);
  }
  
_AT_@ -126,7 +126,7 @@ index 664c527..15014c0 100644
  void
  checkotherwm(void)
  {
-_AT_@ -1039,6 +1060,7 @@ manage(Window w, XWindowAttributes *wa)
+_AT_@ -1045,6 +1066,7 @@ manage(Window w, XWindowAttributes *wa)
                  c->mon = selmon;
                  applyrules(c);
          }
_AT_@ -134,7 +134,7 @@ index 664c527..15014c0 100644
  
          if (c->x + WIDTH(c) > c->mon->mx + c->mon->mw)
                  c->x = c->mon->mx + c->mon->mw - WIDTH(c);
-_AT_@ -1200,6 +1222,18 @@ nexttiled(Client *c)
+_AT_@ -1206,6 +1228,18 @@ nexttiled(Client *c)
          return c;
  }
  
_AT_@ -153,7 +153,7 @@ index 664c527..15014c0 100644
  void
  pop(Client *c)
  {
-_AT_@ -1563,6 +1597,7 @@ setup(void)
+_AT_@ -1569,6 +1603,7 @@ setup(void)
          netatom[NetWMWindowType] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False);
          netatom[NetWMWindowTypeDialog] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DIALOG", False);
          netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False);
_AT_@ -162,5 +162,5 @@ index 664c527..15014c0 100644
          cursor[CurNormal] = drw_cur_create(drw, XC_left_ptr);
          cursor[CurResize] = drw_cur_create(drw, XC_sizing);
 --
-2.28.0
+2.36.1
 
diff --git a/dwm.suckless.org/patches/clientopacity/index.md b/dwm.suckless.org/patches/clientopacity/index.md
index 0548bca0..be12e6f5 100644
--- a/dwm.suckless.org/patches/clientopacity/index.md
+++ b/dwm.suckless.org/patches/clientopacity/index.md
_AT_@ -15,7 +15,7 @@ It is based on the transparency patch of Christop Lohmann.
 
 Download
 --------
-* [dwm-clientopacity-20201012-61bb8b2.diff](dwm-clientopacity-20201012-61bb8b2.diff)
+* [dwm-clientopacity-20220612-d3f93c7.diff](dwm-clientopacity-20220612-d3f93c7.diff)
 
 Authors
 -------
Received on Sun Jun 12 2022 - 18:47:55 CEST

This archive was generated by hypermail 2.3.0 : Sun Jun 12 2022 - 18:48:40 CEST