My configuration of sxmo fork of suckless dwm.

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

commit a51e8c8d5d6f9fc63f91cddfe40d7eae3ea3fcde
parent 209d78c87f04f7b56f5fee4caf19475ed8b041ed
Author: Miles Alan <m@milesalan.com>
Date:   Sat, 25 Apr 2020 18:05:48 -0500

Remove float button handler

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

diff --git a/config.def.h b/config.def.h @@ -150,7 +150,6 @@ static Button buttons[] = { { ClkStatusText, 0, Button1, spawn, SHCMD("sxmo_appmenu.sh control") }, { ClkWinTitle, 0, Button2, zoom, {0} }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, - { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, }; diff --git a/dwm.c b/dwm.c @@ -1544,9 +1544,9 @@ movemouse(const Arg *arg) ny = selmon->wy; else if (abs((selmon->wy + selmon->wh) - (ny + HEIGHT(c))) < snap) ny = selmon->wy + selmon->wh - HEIGHT(c); - if (!c->isfloating && selmon->lt[selmon->sellt]->arrange - && (abs(nx - c->x) > snap || abs(ny - c->y) > snap)) - togglefloating(NULL); + //if (!c->isfloating && selmon->lt[selmon->sellt]->arrange + //&& (abs(nx - c->x) > snap || abs(ny - c->y) > snap)) + // togglefloating(NULL); if (!selmon->lt[selmon->sellt]->arrange || c->isfloating) resize(c, nx, ny, c->w, c->h, 1); break;