all repos — ryudo @ 4981ffdc8ca7f6bb9ea76bfc8b134d3f50529faf

the floatiling window manager that flows; fork of rio from plan9port

fix window drag for small uxn windows; remove debug flag for build; bump to v1.2.2
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEkFh6dA+k/6CXFXU4O3+8IhROY5gFAmIZvD4ACgkQO3+8IhRO
Y5hOwQ//bnmFNCeoGdp1oYAVJnNnzmdOwFtrN6jqGQnNzZ48jukWGyR8Nb1desXf
UPN30vHHDLyO6bsenVTLs4RVLpPY15z/JodlCjzYzUm/1p9r46IT1kl/2bSBmVwh
62RYWGLnlNgG9pvjOFznIB+iWTnG/Lk64gSzgAkhTnZQHil06ntLYkSrdjBj1Vtu
egyyl2NSxaexCo9s8qpQRdAvVeTlCErQDKdFCJyM+C0jkRm2F/5xZWulGVpDXfwf
z7lNy4rNfObIifNeLgVqqg+NbcbhbhxKij6ERmKh5+CTBJEunCrYd4mXbtLwUIrS
ToKjMq5WRHHd6nrJlanTWs2jVDNJF3DhAakQNnfQZYfj741MfnmizLIUrP3U8Pyc
TWORjDmG4PPTRNRFNKSYoWIiD9YGr2jzKJ5+wpDScTnkk/wCkuRBp5hGzKOV+rU/
9FfY/70i3cJ8wrUiUpDXyrqVh0zAl4G5vJV5pLvv0J7/T3RhZXZAkZ+RyRAdwRl3
Hrr4vveFinTGwMagUAbrJdNspvw33FzsDl7aQzN79k7kYSXnr2AA0DpVbWIbZ6Nj
O/JaNF1xVQ/N4frX20/XjQZqb2Y8EnEU4PQJ14lvuj0Lc025MGeGjCDKgDOlBww7
wvT1Ye9EoLZsHrzH6Fipu04gTzqcXPkBwA2LMQiRltaL7zAid14=
=s4GH
-----END PGP SIGNATURE-----
commit

4981ffdc8ca7f6bb9ea76bfc8b134d3f50529faf

parent

69eb379b68caccf13eef229aca2451013d6ecae0

3 files changed, 8 insertions(+), 6 deletions(-)

jump to
M grab.cgrab.c

@@ -599,10 +599,11 @@ // misleep(500);

// XGrabServer(dpy); idle = 0; } - if (e0 || bl != BorderUnknown) + if (e0 || bl != BorderUnknown) { notmoved = recalc(c, rx, ry, bl, notmoved); - else + } else { notmoved = recalc(c, rx - cx, ry - cy, bl, notmoved); + } cx = rx; cy = ry; drawbound(c, 1);

@@ -632,7 +633,9 @@ c->x += BORDER;

c->y += BORDER; c->dx -= 2 * BORDER; c->dy -= 2 * BORDER; - if (c->dx < 4 || c->dy < 4 || c->dx < c->min_dx || c->dy < c->min_dy) + if ( + recalc != dragcalc && + (c->dx < 4 || c->dy < 4 || c->dx < c->min_dx || c->dy < c->min_dy)) goto bad; return 1; }
M main.cmain.c

@@ -21,7 +21,7 @@ #include "fns.h"

#include "patchlevel.h" char* version[] = { - "ryudo version 1.2.1\nCopyright (c) 1994-1996 David Hogan,\n(c) 2004 Russ " + "ryudo version 1.2.2\nCopyright (c) 1994-1996 David Hogan,\n(c) 2004 Russ " "Cox,\n(c) 2019-2022 Derek Stevens", 0};
M mkfilemkfile

@@ -13,7 +13,6 @@ main.$O\

manage.$O\ menu.$O\ -CFLAGS=$CFLAGS -DDEBUG HFILES=dat.h fns.h TARG=rio xshove

@@ -29,7 +28,7 @@ <|sh mkriorules.sh

$O.rio: $RIOFILES -CFLAGS=$CFLAGS -DSHAPE -DDEBUG_EV -DDEBUG -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include/ -I/usr/include/gdk-pixbuf-2.0/ +CFLAGS=$CFLAGS -DSHAPE -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include/ -I/usr/include/gdk-pixbuf-2.0/ $O.xevents: xevents.$O printevent.$O $LD -o $target $prereq $LDFLAGS