sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 9ecada966beecb0c774092f1bd7b1df3825d550b
parent 58abc0213b0e4b9a3e62bbdf83e9cd1288477472
Author: toniz4 <cassioavila000@gmail.com>
Date:   Thu, 25 Jun 2020 00:48:49 -0300

added a patch that centers all floating clients

Diffstat:
Adwm.suckless.org/patches/awayscenter/dwm-awayscenter-20200625-f04cac6.diff | 12++++++++++++
Adwm.suckless.org/patches/awayscenter/index.md | 17+++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/awayscenter/dwm-awayscenter-20200625-f04cac6.diff b/dwm.suckless.org/patches/awayscenter/dwm-awayscenter-20200625-f04cac6.diff @@ -0,0 +1,12 @@ +diff -up dwm/dwm.c dwmmod/dwm.c +--- dwm/dwm.c 2020-06-25 00:21:30.383692180 -0300 ++++ dwmmod/dwm.c 2020-06-25 00:20:35.643692330 -0300 +@@ -1057,6 +1057,8 @@ manage(Window w, XWindowAttributes *wa) + updatewindowtype(c); + updatesizehints(c); + updatewmhints(c); ++ c->x = c->mon->mx + (c->mon->mw - WIDTH(c)) / 2; ++ c->y = c->mon->my + (c->mon->mh - HEIGHT(c)) / 2; + XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask); + grabbuttons(c, 0); + if (!c->isfloating) diff --git a/dwm.suckless.org/patches/awayscenter/index.md b/dwm.suckless.org/patches/awayscenter/index.md @@ -0,0 +1,17 @@ +awayscenter +=========== + +Description +----------- +All floating windows are centered, like the center patch, but +without a rule. + +Download +-------- +* [dwm-awayscenter-20200625-f04cac6.diff](dwm-awayscenter-20200625-f04cac6.diff) + +Authors +------- +* Cássio Ávila - <cassioavila@yandex.com> +* Chris Down - <chris@chrisdown.name> (original center patch) +* Laslo Hunhold - <dev@frign.de> (original center patch git port)