My configuration of sxmo fork of suckless dwm.

git clone git://watertao.xyz/programs/sxmo-dwm.git

commit 4fe37f902a3f8a15f2815c3d37a93bfcb7f9d58d
parent 25fd73b42f3cc2b6dc5520dadf4c197dce605ceb
Author: Miles Alan <m@milesalan.com>
Date:   Sat,  7 Mar 2020 13:10:54 -0600

Disable enternotify/motionnotify - focus on click only; disable mouse usages

Diffstat:
Mconfig.def.h | 2+-
Mdwm.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -116,7 +116,7 @@ static Button buttons[] = { { ClkLtSymbol, 0, Button1, setlayout, {0} }, { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, + /*{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },*/ { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, diff --git a/dwm.c b/dwm.c @@ -255,14 +255,14 @@ static void (*handler[LASTEvent]) (XEvent *) = { [ConfigureRequest] = configurerequest, [ConfigureNotify] = configurenotify, [DestroyNotify] = destroynotify, - [EnterNotify] = enternotify, + //[EnterNotify] = enternotify, [Expose] = expose, [FocusIn] = focusin, [KeyPress] = keypress, [KeyRelease] = keyrelease, [MappingNotify] = mappingnotify, [MapRequest] = maprequest, - [MotionNotify] = motionnotify, + //[MotionNotify] = motionnotify, [PropertyNotify] = propertynotify, [UnmapNotify] = unmapnotify };