mfwm

A tiling fork of dylanaraps sowm.
git clone git://depsterr.com/git/mfwm
Log | Files | Refs | README | LICENSE

commit d85dfbdb8a33437738aa609143745eef35a35df2
parent 771dafe47390f7e7cdaa3878c5ed83239a75e76b
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sun, 13 Oct 2019 22:41:44 +0300

docs: update

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

diff --git a/sowm.c b/sowm.c @@ -94,16 +94,16 @@ void notify_motion(XEvent *e) { client *c; if (start.subwindow != None) { - int xdiff = e->xbutton.x_root - start.x_root; - int ydiff = e->xbutton.y_root - start.y_root; + int xd = e->xbutton.x_root - start.x_root; + int yd = e->xbutton.y_root - start.y_root; while(XCheckTypedEvent(dis, MotionNotify, e)); XMoveResizeWindow(dis, start.subwindow, - attr.x + (start.button==1 ? xdiff : 0), - attr.y + (start.button==1 ? ydiff : 0), - attr.width + (start.button==3 ? xdiff : 0), - attr.height + (start.button==3 ? ydiff : 0)); + attr.x + (start.button==1 ? xd : 0), + attr.y + (start.button==1 ? yd : 0), + attr.width + (start.button==3 ? xd : 0), + attr.height + (start.button==3 ? yd : 0)); } for WIN if (c->win == start.subwindow) c->f = 0; @@ -244,8 +244,6 @@ void win_next() { win_current(); client *c; - if (cur == root) return; - if (list) { for WIN if (c->win == cur) break;