[wiki] [sites] [dwm][patch][togglefloatingcenter] Fixed the failure when patched || Rizqi Nur Assyaufi

From: <git_AT_suckless.org>
Date: Fri, 06 Aug 2021 18:31:43 +0200

commit 4618b3da4934bfde6afc868f78089599a5ebeaa4
Author: Rizqi Nur Assyaufi <bandithijo_AT_gmail.com>
Date: Sat Aug 7 00:29:41 2021 +0800

    [dwm][patch][togglefloatingcenter] Fixed the failure when patched

diff --git a/dwm.suckless.org/patches/togglefloatingcenter/dwm-togglefloatingcenter-20210806-138b405f.diff b/dwm.suckless.org/patches/togglefloatingcenter/dwm-togglefloatingcenter-20210806-138b405f.diff
new file mode 100644
index 00000000..ab389895
--- /dev/null
+++ b/dwm.suckless.org/patches/togglefloatingcenter/dwm-togglefloatingcenter-20210806-138b405f.diff
_AT_@ -0,0 +1,31 @@
+From efa326b2c71f0df1d097fd52a17684f5ccc5df6c Mon Sep 17 00:00:00 2001
+From: Rizqi Nur Assyaufi <bandithijo_AT_gmail.com>
+Date: Sat, 7 Aug 2021 00:24:01 +0800
+Subject: [PATCH] [dwm][patch][togglefloatingcenter] centered togglefloating
+ window
+
+Default behaviour when togglefloating() is floating from top-left corner.
+This patch will allows you to toggle floating window client will be centered
+position.
+---
+ dwm.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/dwm.c b/dwm.c
+index 5e4d494..cbedb09 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -1719,6 +1719,10 @@ togglefloating(const Arg *arg)
+ if (selmon->sel->isfloating)
+ resize(selmon->sel, selmon->sel->x, selmon->sel->y,
+ selmon->sel->w, selmon->sel->h, 0);
++
++ selmon->sel->x = selmon->sel->mon->mx + (selmon->sel->mon->mw - WIDTH(selmon->sel)) / 2;
++ selmon->sel->y = selmon->sel->mon->my + (selmon->sel->mon->mh - HEIGHT(selmon->sel)) / 2;
++
+ arrange(selmon);
+ }
+
+--
+2.31.1
+
diff --git a/dwm.suckless.org/patches/togglefloatingcenter/dwm-togglefloatingcenter-20210806-61bb8b22.diff b/dwm.suckless.org/patches/togglefloatingcenter/dwm-togglefloatingcenter-20210806-61bb8b22.diff
deleted file mode 100644
index ece27e66..00000000
--- a/dwm.suckless.org/patches/togglefloatingcenter/dwm-togglefloatingcenter-20210806-61bb8b22.diff
+++ /dev/null
_AT_@ -1,29 +0,0 @@
-commit d3060fef380723635f2d3bb39ae697cd0fdde30d (HEAD -> togglefloatingcenter)
-Author: Rizqi Nur Assyaufi <bandithijo_AT_gmail.com>
-Date: Fri Aug 6 14:37:10 2021 +0800
-Subject: [patch][togglefloatingcenter] centered togglefloating window
-
-Default behaviour when togglefoating() is floating from top-left corner.
-This patch will allows you to toggle floating window client will be centered
-position.
-
----
- dwm.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/dwm.c b/dwm.c
-index 664c527..5234d4b 100644
---- a/dwm.c
-+++ b/dwm.c
-_AT_@ -1719,6 +1719,10 @@ togglefloating(const Arg *arg)
-    if (selmon->sel->isfloating)
-        resize(selmon->sel, selmon->sel->x, selmon->sel->y,
-            selmon->sel->w, selmon->sel->h, 0);
-+
-+    selmon->sel->x = selmon->sel->mon->mx + (selmon->sel->mon->mw - WIDTH(selmon->sel)) / 2;
-+    selmon->sel->y = selmon->sel->mon->my + (selmon->sel->mon->mh - HEIGHT(selmon->sel)) / 2;
-+
-    arrange(selmon);
- }
---
-2.31.1
diff --git a/dwm.suckless.org/patches/togglefloatingcenter/index.md b/dwm.suckless.org/patches/togglefloatingcenter/index.md
index c4332e48..7162b240 100644
--- a/dwm.suckless.org/patches/togglefloatingcenter/index.md
+++ b/dwm.suckless.org/patches/togglefloatingcenter/index.md
_AT_@ -3,7 +3,7 @@ togglefloatingcenter
 
 Description
 -----------
-Default behaviour when togglefoating() is floating from top-left corner.
+Default behaviour when togglefloating() is floating from top-left corner.
 This patch will allows you to toggle floating window client will be centered
 position.
 
Received on Fri Aug 06 2021 - 18:31:43 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 06 2021 - 18:36:42 CEST