Re: [dwm] new windows on slave area

From: Tener Hades <tener.hades_AT_gmail.com>
Date: Sun, 21 Jan 2007 01:32:25 +0000

On Fri, Jan 19, 2007 at 05:14:48PM +0000, Tener Hades wrote:
> One quick note, I did things pretty sloppy in main.c:setup() after
> /* geometry */
> so, ATM, both symbols have to be the same length, or bad things may
> happen...

Okay.

I've removed the variable `bmw' completely and replaced it with an

        unsigned int getbmw();

because, afaik, it was only set once (and I don't get any compilation
errors) and used a couple of times (draw.c and event.c). In mainstream
it's set to the length of the longest mode symbol; getbmw() (used in
place of bmw) returns the length of the current symbol based on arrange
and/or TILESYMBOL[apwl] and is called in main.c:setup() and
draw.c:drawstatus().

Until I added this function, a 3 char float symbol had extra whitespace
after changing from a longer-length, say 5 character, tile symbol.

But not anymore, at the expense of the window title shifting when the
mode is changed... But for those of you using FIFO pipes to stdin, this
shouldn't be anything new..

Patch attached.

/* err.. . just ignore the comments i added..
 * 1.) they're wrong, 2.) they're old (as in before i removed
 * bmw completely etc.) .. forgot to take them out before
 * running diff and it's bedtime/i'm lazy
 */

[/tener]

Received on Sun Jan 21 2007 - 08:31:50 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:35:25 UTC