all repos — ryudo @ bc38a1ab32404a179c88e79663bfa14f51cce2ac

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

config.h, key.c: add gaps for psuedotiling
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEkFh6dA+k/6CXFXU4O3+8IhROY5gFAmA2vBUACgkQO3+8IhRO
Y5hd9g//XAgg0ZVe3zDFp0+EfCHzNiuYLXvxrdfG13UMrjzwTkTShlBZREyrYGQK
Ro85Y/G4LeSzM7I4lQUq0cyJUosyXzNe7Sdy2vPfwYJ10W+K8/zJzZYz+4zQqXDc
WPvdrecxEHSxrvHENsfUfBlsIh81uPVrHrC5/flOhO7la4gthiAjLmd7B/Ju6U08
XV9zDMaJ3IrmxjesSlGMaQOT30tdBjsdmZUoUdW16lOJyQYU9SSRfbyg5Fhk7odJ
YB5DMlC0EundPRzTwD7JlTReaode4MpXG34MrtsuVZIm0F+XFRrYax/W3FQ0yufR
RF3tvuhIUysS7daMYxGmmLnPSUqJLsLZbsYJ16ZAxbzfd7uEiQBRRqsey2HizIZg
3PGUBOOtZew9Mq2TT9DrJCvl+EzTWI5WjrpCqSd3ejyy0M2m/6fdkmC6QYEiR12d
DQ9rT5uOsnCDyjUX1hlSDVNRhmCTPwlNM5j6U3Wp4ikbe6unWrgIAvpzVgT2iece
HzYcC//hJQ2fmJFzcg9zt4/eW88VINl7i6x657goEzPFbbvcSwtDw+XIz+Q7RVUj
BdK7Cv3F8V3JyiRxpFHDxu6EQ26RUYEZ1JceWvWWzTbuppfXHAHWydP5kMlbzm0y
2wI17g+YpyYjlmJ6KCZZ+byxQYXBi1q+RwTxGrHj+nGhmRZmeUE=
=Smu/
-----END PGP SIGNATURE-----
commit

bc38a1ab32404a179c88e79663bfa14f51cce2ac

parent

d06638a1ebef732aadf872a3c741984fb06668c8

2 files changed, 10 insertions(+), 8 deletions(-)

jump to
M config.hconfig.h

@@ -5,6 +5,8 @@ #define BORDERCOL 0x000000

#define GHOSTCOL 0x797979 #define BORDER 4 +#define GAPSZ 4 + #define MENUBORDER 0 #define MBORDERCOL 0x000000 #define MENUFGCOL 0x797979
M key.ckey.c

@@ -147,23 +147,23 @@ stick(current);

/* half snap */ if (e->keycode == hcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, 0, 0, ra.width/2, ra.height); + quickreshape(current, GAPSZ, GAPSZ, ra.width/2 - 2*GAPSZ, ra.height - 2*GAPSZ); if (e->keycode == lcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, ra.width/2, 0, ra.width/2, ra.height); + quickreshape(current, ra.width/2 + GAPSZ, GAPSZ, ra.width/2 - 2*GAPSZ, ra.height - 2*GAPSZ); if (e->keycode == jcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, 0, ra.height/2, ra.width, ra.height/2); + quickreshape(current, GAPSZ, ra.height/2 + GAPSZ, ra.width - 2*GAPSZ, ra.height/2 - 2*GAPSZ); if (e->keycode == kcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, 0, 0, ra.width, ra.height/2); + quickreshape(current, GAPSZ, GAPSZ, ra.width - 2*GAPSZ, ra.height/2 - 2*GAPSZ); /* quarter snap */ if (e->keycode == qcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, 0, 0, ra.width/2, ra.height/2); + quickreshape(current, GAPSZ, GAPSZ, ra.width/2 - 2*GAPSZ, ra.height/2 - 2*GAPSZ); if (e->keycode == wcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, 0, ra.height/2, ra.width/2, ra.height/2); + quickreshape(current, GAPSZ, ra.height/2 + GAPSZ, ra.width/2 - 2*GAPSZ, ra.height/2 - 2*GAPSZ); if (e->keycode == ocode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, ra.width/2, ra.height/2, ra.width/2, ra.height/2); + quickreshape(current, ra.width/2 + GAPSZ, ra.height/2 + GAPSZ, ra.width/2 - 2*GAPSZ, ra.height/2 - 2*GAPSZ); if (e->keycode == pcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, ra.width/2, 0, ra.width/2, ra.height/2); + quickreshape(current, ra.width/2 + GAPSZ, GAPSZ, ra.width/2 - 2*GAPSZ, ra.height/2 - 2*GAPSZ); /* center snap */ if (e->keycode == ccode && (e->state&SHORTCUTMOD) == (MODBITS))