shod

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit baafccfc6051cfab62cac12ba4ecccb8152d0cc3
parent b272bcc81a273944272480275d5806d0f4f92153
Author: Lucas de Sena <lucas@seninha.org>
Date:   Tue, 25 Jul 2023 13:57:02 -0300

fix container unmaximization via mouse

Diffstat:
Mxevents.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/xevents.c b/xevents.c @@ -1085,7 +1085,11 @@ mousemove(Window win, int type, void *p, int xroot, int yroot, enum Octant o) }, REMOVE ); - containermove(c, c->nx, 0, 0); + containermove( + c, + ev.xmotion.x_root - c->nw / 2, + 0, 0 + ); } else if (!c->ismaximized && ev.xmotion.y_root <= 0) { containersetstate( c->selcol->selrow->seltab,