[wiki] [sites] [dwm][moveresize]: fix for resize to edge || Georgios Oxinos

From: <git_AT_suckless.org>
Date: Sat, 10 Dec 2022 15:40:10 +0100

commit 1005f91396ac20fbec456287a8d27722c0363673
Author: Georgios Oxinos <oxinosg_AT_gmail.com>
Date: Sat Dec 10 15:39:04 2022 +0100

    [dwm][moveresize]: fix for resize to edge

diff --git a/dwm.suckless.org/patches/moveresize/dwm-moveresize-20210823-a786211.diff b/dwm.suckless.org/patches/moveresize/dwm-moveresize-20221210-7ac106c.diff
similarity index 93%
rename from dwm.suckless.org/patches/moveresize/dwm-moveresize-20210823-a786211.diff
rename to dwm.suckless.org/patches/moveresize/dwm-moveresize-20221210-7ac106c.diff
index f1797b47..63225eb9 100644
--- a/dwm.suckless.org/patches/moveresize/dwm-moveresize-20210823-a786211.diff
+++ b/dwm.suckless.org/patches/moveresize/dwm-moveresize-20221210-7ac106c.diff
_AT_@ -1,19 +1,18 @@
-From dd4d21ad7cebab8b6927f1446e5d1edd9cea94d5 Mon Sep 17 00:00:00 2001
-From: howoz <howoz_AT_airmail.cc>
-Date: Mon, 23 Aug 2021 01:24:31 +0300
-Subject: [PATCH] [dwm][patch][moveresize] patch:
+From 7ac106cad72c909fbb05d302f84191cdec8f2ac0 Mon Sep 17 00:00:00 2001
+From: oxinosg <oxinosg_AT_gmail.com>
+Date: Sat, 10 Dec 2022 15:24:14 +0100
+Subject: [PATCH] [dwm][moveresize]: fix for resize to edge
 
- prevent the cursor from going out of the window when resizing
 ---
  config.def.h | 16 ++++++
  dwm.c | 154 +++++++++++++++++++++++++++++++++++++++++++++++++++
  2 files changed, 170 insertions(+)
 
 diff --git a/config.def.h b/config.def.h
-index a2ac963..87baa38 100644
+index 9efa774..99049e7 100644
 --- a/config.def.h
 +++ b/config.def.h
-_AT_@ -79,6 +79,22 @@ static Key keys[] = {
+_AT_@ -79,6 +79,22 @@ static const Key keys[] = {
          { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
          { MODKEY, XK_space, setlayout, {0} },
          { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
_AT_@ -37,7 +36,7 @@ index a2ac963..87baa38 100644
          { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
          { MODKEY, XK_comma, focusmon, {.i = -1 } },
 diff --git a/dwm.c b/dwm.c
-index 5e4d494..0898236 100644
+index 03baf42..89ec70d 100644
 --- a/dwm.c
 +++ b/dwm.c
 _AT_@ -183,6 +183,8 @@ static void mappingnotify(XEvent *e);
_AT_@ -48,8 +47,8 @@ index 5e4d494..0898236 100644
 +static void moveresizeedge(const Arg *arg);
  static void movemouse(const Arg *arg);
  static Client *nexttiled(Client *c);
- static void pop(Client *);
-_AT_@ -1193,6 +1195,158 @@ movemouse(const Arg *arg)
+ static void pop(Client *c);
+_AT_@ -1203,6 +1205,158 @@ movemouse(const Arg *arg)
          }
  }
  
_AT_@ -193,7 +192,7 @@ index 5e4d494..0898236 100644
 +
 + XRaiseWindow(dpy, c->win);
 + Bool xqp = XQueryPointer(dpy, root, &dummy, &dummy, &msx, &msy, &dx, &dy, &dui);
-+ resize(c, nx, ny, nw, nh, True);
++ resizeclient(c, nx, ny, nw, nh);
 +
 + /* move cursor along with the window to avoid problems caused by the sloppy focus */
 + if (xqp && ox <= msx && (ox + ow) >= msx && oy <= msy && (oy + oh) >= msy) {
_AT_@ -209,5 +208,5 @@ index 5e4d494..0898236 100644
  nexttiled(Client *c)
  {
 --
-2.33.0
+2.34.1
 
diff --git a/dwm.suckless.org/patches/moveresize/index.md b/dwm.suckless.org/patches/moveresize/index.md
index 250ecdd7..68fe565e 100644
--- a/dwm.suckless.org/patches/moveresize/index.md
+++ b/dwm.suckless.org/patches/moveresize/index.md
_AT_@ -80,7 +80,7 @@ Changelog
 
 Download
 --------
-* [dwm-moveresize-20210823-a786211.diff](dwm-moveresize-20210823-a786211.diff)
+* [dwm-moveresize-20221210-7ac106c.diff](dwm-moveresize-20221210-7ac106c.diff)
 * [dwm-moveresize-20201206-cce77d8.diff](dwm-moveresize-20201206-cce77d8.diff)
 * [dwm-moveresize-20200609-46c8838.diff](dwm-moveresize-20200609-46c8838.diff)
 * [dwm-moveresize-6.2.diff](dwm-moveresize-6.2.diff)
Received on Sat Dec 10 2022 - 15:40:10 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 10 2022 - 15:48:42 CET