diff options
| author | Nikita Langer <nikitalanger@icloud.com> | 2026-04-06 22:26:07 +0200 |
|---|---|---|
| committer | Nikita Langer <nikitalanger@icloud.com> | 2026-04-06 22:26:07 +0200 |
| commit | 3b4f2dd9894397c44ec0e10d4247e886c4f4c314 (patch) | |
| tree | 43c0ca4a04abf25d89446095ca16d81a5d5f26cf /patches/alwayscenter.patch | |
| download | dwl-3b4f2dd9894397c44ec0e10d4247e886c4f4c314.tar.gz dwl-3b4f2dd9894397c44ec0e10d4247e886c4f4c314.tar.bz2 dwl-3b4f2dd9894397c44ec0e10d4247e886c4f4c314.tar.xz dwl-3b4f2dd9894397c44ec0e10d4247e886c4f4c314.zip | |
Initial Komm mit :)
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..962745d --- /dev/null +++ b/patches/alwayscenter.patch @@ -0,0 +1,25 @@ +From 48110f0443c8e1ddcd56b6fed5da46535024919c Mon Sep 17 00:00:00 2001 +From: Guido Cella <guido@guidocella.xyz> +Date: Tue, 13 Jan 2026 21:17:22 +0100 +Subject: [PATCH] center floating windows + +--- + dwl.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dwl.c b/dwl.c +index 44f3ad9..72714f8 100644 +--- a/dwl.c ++++ b/dwl.c +@@ -2414,6 +2414,8 @@ setmon(Client *c, Monitor *m, uint32_t newtags) + /* Make sure window actually overlaps with the monitor */ + resize(c, c->geom, 0); + c->tags = newtags ? newtags : m->tagset[m->seltags]; /* assign tags of target monitor */ ++ c->prev.x = (m->w.width - c->prev.width) / 2 + m->m.x; ++ c->prev.y = (m->w.height - c->prev.height) / 2 + m->m.y; + setfullscreen(c, c->isfullscreen); /* This will call arrange(c->mon) */ + setfloating(c, c->isfloating); + } +-- +2.52.0 + |
