diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-05-05 14:16:53 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-05-05 14:16:53 +0530 |
| commit | 2ff92ffad11cad902dad037c24780e0dbf451551 (patch) | |
| tree | ecdf0fd545460949085a1b9b10923a3eaf08e9e7 /patches/alwayscenter.patch | |
| parent | c17629aaa71380618c356e8083c7b38a756948d8 (diff) | |
Revert "monfig patch"
This reverts commit 18e363b5bb655859660eb6177fadc67192914f61.
Diffstat (limited to 'patches/alwayscenter.patch')
| -rw-r--r-- | patches/alwayscenter.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/alwayscenter.patch b/patches/alwayscenter.patch new file mode 100644 index 0000000..3664763 --- /dev/null +++ b/patches/alwayscenter.patch @@ -0,0 +1,25 @@ +From 95ac2fd73af8cee3ce3e556c254e60a2ca985515 Mon Sep 17 00:00:00 2001 +From: Guido Cella <guido@guidocella.xyz> +Date: Tue, 16 Jan 2024 18:14:50 +0100 +Subject: [PATCH] center floating windows + +--- + dwl.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dwl.c b/dwl.c +index 95ebee8..ac077e3 100644 +--- a/dwl.c ++++ b/dwl.c +@@ -453,6 +453,8 @@ applyrules(Client *c) + } + } + } ++ c->geom.x = (mon->w.width - c->geom.width) / 2 + mon->m.x; ++ c->geom.y = (mon->w.height - c->geom.height) / 2 + mon->m.y; + setmon(c, mon, newtags); + } + +-- +2.43.0 + |
