sowm

An itsy bitsy floating window manager (220~ sloc!).
git clone git://mfeller.io/sowm.git
Log | Files | Refs | README | LICENSE

commit 29281485348c17c07912159a9862bc9ec25bdc68
parent f19fd045a85d44a7338928a9eb3f94c00690eb73
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Wed, 16 Oct 2019 08:29:58 +0300

patches: rebase

Diffstat:
Mpatches/sowm-rounded-corners.patch | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/patches/sowm-rounded-corners.patch b/patches/sowm-rounded-corners.patch @@ -50,13 +50,13 @@ index b9e8867..4c0b3fa 100644 for WIN if (c->w == mouse.subwindow) c->f = 0; } } -@@ -367,9 +367,58 @@ void win_fs() { - - } else - XMoveResizeWindow(d, cur, c->a.x, c->a.y, c->a.width, c->a.height); +@@ -179,8 +179,58 @@ void notify_motion(XEvent *e) { + attr.y + (mouse.button == 1 ? yd : 0), + attr.width + (mouse.button == 3 ? xd : 0), + attr.height + (mouse.button == 3 ? yd : 0)); + -+ win_round_corners(cur, c->f ? 0 : ROUND_CORNERS); - } ++ if (mouse.button == 3) ++ win_round_corners(mouse.subwindow, ROUND_CORNERS); } +/* @@ -74,7 +74,7 @@ index b9e8867..4c0b3fa 100644 + XWindowAttributes attr2; + XGetWindowAttributes(d, w, &attr2); + -+ int dia = 2 * rad; ++ int dia = 2 * rad; + int ww = attr2.width; + int wh = attr2.height; + @@ -107,8 +107,8 @@ index b9e8867..4c0b3fa 100644 + } + /* - This function simply moves the focused window to - the desired desktop. + This function initializes all key bindings defined in 'config.h'. + Simple stuff, nothing fancy or different from other window @@ -511,6 +511,7 @@ void map_request(XEvent *e) { win_center((Arg){.i = w});