Re: [wmii] improved dmenu-1.4-bottom-patch for wmii users

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Thu, 23 Nov 2006 12:13:48 +0100

On Thu, Nov 23, 2006 at 11:43:32AM +0100, Stefan Tibus wrote:
> On Thu, 23 Nov 2006 10:54:19 +0100 Anselm R. Garbe wrote:
> > On Wed, Nov 22, 2006 at 10:06:55PM +0100, Denis Grelich wrote:
> > No, the effect Stefan points out has nothing todo with X* sucks
> > ;)
> Not exactly.
>
> > It is because wmii draws 1px borders (hence the + 4), but dmenu
> > (like dwm) has dropped those 1px borders around labels, hence
> > they use font.ascent + font.descent + 2 as bar height.
> If it just were like that one should get the same size by making
> dmenu use "+ 4", but it has to be "+ 3"!?

Note that y-offsets begin at 0, whereas heights are postive.
Thus maybe + 4 would be right if you calculate
y = screenheight - barheight - 1; (Does this solve your issue?)

Regards,

-- 
 Anselm R. Garbe >< http://suckless.org/~arg/ >< GPG key: 0D73F361
Received on Thu Nov 23 2006 - 12:13:48 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:17:08 UTC