Immediately toggle client floating mode on mouse resize in floating layout

This commit is contained in:
Alex Kotov 2021-11-14 00:24:47 +05:00
parent 3c5ceda88c
commit 497a2bf33a
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 2 additions and 1 deletions

3
dwm.c
View File

@ -1584,7 +1584,8 @@ resizemouse(const Arg *arg)
c->mon->wy + nh <= selmon->wy + selmon->wh)
{
if (!c->isfloating &&
(abs(nw - c->w) > snap_distance ||
(selmon->lt[selmon->sellt]->arrange == NULL ||
abs(nw - c->w) > snap_distance ||
abs(nh - c->h) > snap_distance))
{
togglefloating(NULL);