[wiki] [sites] [dwm][patches][betterswallow] Update patch || Hubert Głuchowski

From: <git_AT_suckless.org>
Date: Thu, 16 Jan 2025 22:47:20 +0100

commit 3128a4cfb9c2d4eb1751351d15102e5bfc03e17f
Author: Hubert Głuchowski <hubert.gluchowski19_AT_gmail.com>
Date: Thu Jan 16 22:42:09 2025 +0100

    [dwm][patches][betterswallow] Update patch
    
    Fixed broken behaviour caused by lazy linked list usage

diff --git a/dwm.suckless.org/patches/betterswallow/dwm-betterswallow-20241215-89eeca1.diff b/dwm.suckless.org/patches/betterswallow/dwm-betterswallow-20250116-89eeca1.diff
similarity index 96%
rename from dwm.suckless.org/patches/betterswallow/dwm-betterswallow-20241215-89eeca1.diff
rename to dwm.suckless.org/patches/betterswallow/dwm-betterswallow-20250116-89eeca1.diff
index f80532c1..6f6ae9e0 100644
--- a/dwm.suckless.org/patches/betterswallow/dwm-betterswallow-20241215-89eeca1.diff
+++ b/dwm.suckless.org/patches/betterswallow/dwm-betterswallow-20250116-89eeca1.diff
_AT_@ -12,7 +12,7 @@ diff -up -x dwm -x '*.o' -x compile_commands.json dwm-6.3-orig/config.mk dwm-6.3
  #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
 diff -up -x dwm -x '*.o' -x compile_commands.json dwm-6.3-orig/dwm.c dwm-6.3/dwm.c
 --- dwm-6.3-orig/dwm.c 2024-06-25 01:55:26.771203825 +0200
-+++ dwm-6.3/dwm.c 2024-12-15 01:44:35.963138226 +0100
++++ dwm-6.3/dwm.c 2025-01-16 21:07:02.942737362 +0100
 _AT_@ -40,6 +40,7 @@
  #include <X11/extensions/Xinerama.h>
  #endif /* XINERAMA */
_AT_@ -209,7 +209,7 @@ diff -up -x dwm -x '*.o' -x compile_commands.json dwm-6.3-orig/dwm.c dwm-6.3/dwm
          XChangeProperty(dpy, root, netatom[NetWMCheck], XA_WINDOW, 32,
                  PropModeReplace, (unsigned char *) &wmcheckwin, 1);
          /* EWMH support per view */
-_AT_@ -1766,11 +1864,52 @@ unfocus(Client *c, int setfocus)
+_AT_@ -1766,11 +1864,55 @@ unfocus(Client *c, int setfocus)
  }
  
  void
_AT_@ -243,7 +243,10 @@ diff -up -x dwm -x '*.o' -x compile_commands.json dwm-6.3-orig/dwm.c dwm-6.3/dwm
          XWindowChanges wc;
  
 + if(c->swallower) {
-+ c->swallower->swallowed = c->next_swallowed;
++ Client **prev = &c->swallower->swallowed;
++ for(; *prev != c; prev = &(*prev)->next_swallowed)
++ ;
++ *prev = c->next_swallowed;
 + c->next_swallowed = NULL;
 +
 + if(c->swallower->swallowed == NULL) {
_AT_@ -262,7 +265,7 @@ diff -up -x dwm -x '*.o' -x compile_commands.json dwm-6.3-orig/dwm.c dwm-6.3/dwm
          detach(c);
          detachstack(c);
          if (!destroyed) {
-_AT_@ -1783,9 +1922,10 @@ unmanage(Client *c, int destroyed)
+_AT_@ -1783,9 +1925,10 @@ unmanage(Client *c, int destroyed)
                  XSync(dpy, False);
                  XSetErrorHandler(xerror);
                  XUngrabServer(dpy);
Received on Thu Jan 16 2025 - 22:47:20 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 16 2025 - 22:48:53 CET