Re: [dev] [st] tty width&height

From: Christoph Lohmann <>
Date: Wed, 19 Sep 2012 13:42:02 +0200


On Wed, 19 Sep 2012 13:42:02 +0200 Aurélien Aptel <> wrote:
> Changeset 317 (14adb004eb78) introduced tw and th in the XWindow
> struct. They are currently equivalent to the window width and height
> (x.w and x.h). What are their purpose?

The tty size is different from the window size. The pty device gets a
different size defined than what the window is. This is needed in custom
geometry definitions and when the window manager isn’t respecting st’s
size hints. If the real width and height isn’t kept artefacts will re‐
main on the unused borders.


Christoph Lohmann
Received on Wed Sep 19 2012 - 13:42:02 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 19 2012 - 14:00:07 CEST