sowm

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

commit 68970c95448cae46f2cac7b1d96e9da31727f1b0
parent ecd096fb04b053aecc5f07427afde6f033e27de1
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sat, 12 Oct 2019 23:42:37 +0300

docs: update

Diffstat:
Msowm.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sowm.c b/sowm.c @@ -97,11 +97,9 @@ void notify_enter(XEvent *e) { } void notify_motion(XEvent *e) { - XButtonEvent bu = e->xbutton; - if (start.subwindow != None) { - int xdiff = bu.x_root - start.x_root; - int ydiff = bu.y_root - start.y_root; + int xdiff = e->xbutton.x_root - start.x_root; + int ydiff = e->xbutton.y_root - start.y_root; XMoveResizeWindow(dis, start.subwindow, attr.x + (start.button==1 ? xdiff : 0),