mfwm

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

commit 48e4fcbdfcb75352f6d1dc9657cc6eabe842b984
parent 850f131acab7e0a729bc272236ccff4454f4c3d5
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sun, 13 Oct 2019 20:04:34 +0300

docs: update

Diffstat:
Msowm.c | 12+++---------
1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/sowm.c b/sowm.c @@ -94,9 +94,7 @@ void notify_destroy(XEvent *e) { } void notify_enter(XEvent *e) { - if (e->xcrossing.window != root && - e->xcrossing.type == EnterNotify) - FOC(e->xcrossing.window) + if (e->xcrossing.window != root) FOC(e->xcrossing.window) } void notify_motion(XEvent *e) { @@ -137,11 +135,7 @@ void button_press(XEvent *e) { if (e->xbutton.subwindow == None) return; XGetWindowAttributes(dis, e->xbutton.subwindow, &attr); - FOC(e->xbutton.subwindow); - - if (e->xbutton.state == Mod4Mask) - XRaiseWindow(dis, e->xbutton.subwindow); - + XRaiseWindow(dis, e->xbutton.subwindow); start = e->xbutton; } @@ -365,7 +359,7 @@ int main(void) { XSelectInput(dis, root, SubstructureNotifyMask| SubstructureRedirectMask|EnterWindowMask|LeaveWindowMask); - XGrabButton(dis, 1, AnyModifier, root, True, + XGrabButton(dis, 1, Mod4Mask, root, True, ButtonPressMask|ButtonReleaseMask|PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None);