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-----
M
key.c
→
key.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))