[dev] [st] [PATCH] Sub-char-size window-size increments

From: Augusto Born de Oliveira <augustoborn_AT_gmail.com>
Date: Sun, 2 Nov 2014 20:24:39 -0500

Hello everyone,

First of all, thanks a lot for dwm and st, big fan!

I wrote a patch -- intended for the optional patches section on the site --
that makes st resizable to the pixel, as opposed to the nearest char
width/height. This is to avoid the gaps between and around terminals in
tiling WMs.

The patch uses borderpx from config.h as the minimum border, and
dynamically calculates the actual border sizes in cresize(), based on the
window size given to us. Since this is now dynamic information, I store it
in the Term struct. Contents appear centered in st windows, with
independent horizontal and vertical border sizes.

The patch is based on the 0.5 stable release. I've been using it for a bit
on dwm, and couldn't manage to break it. This is my first time
contributing, so please let me know if this will explode st, goes way
against philosophy, or if the style is horribly off.

Thanks!
Augusto Born de Oliveira

Received on Mon Nov 03 2014 - 02:24:39 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 03 2014 - 02:36:07 CET