Re: [hackers] Refactoring in updategeom and friends

From: Anselm Garbe <garbeam_AT_gmail.com>
Date: Tue, 28 Jan 2020 09:11:50 -0800

Hi Devin,

On Mon, 27 Jan 2020 at 22:53, Devin J. Pohly <djpohly_AT_gmail.com> wrote:
> /* Option B */
> typedef struct { int x, y, w, h; } Dims;
> int resizemons(Dims *dims, int n);
> // finding unique geoms populates a Dims[]

Out of the options you came up with, this would be the only one I
could imagine. The issue though is, that you'll end up transforming
XineramaScreenInfo to Dims or hard-cast it to Dims (dangerous).

Best regards,
Anselm
Received on Tue Jan 28 2020 - 18:11:50 CET

This archive was generated by hypermail 2.3.0 : Wed Jan 29 2020 - 01:12:32 CET