Re: [dwm] draw.c[80]: if((dc.w = dc.x - x) > bh)

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Thu, 19 Apr 2007 09:47:37 +0200

On Thu, Apr 19, 2007 at 05:27:32PM +1200, Karl. wrote:
> I'm looking at the status-text drawing functions and thinking about
> attempting some patching, to scratch one of my itches.
>
> At line 80 of draw.c (hg tip), I find this line:
>
> if((dc.w = dc.x - x) > bh) {
>
> As far as I can see, it is comparing a width with the bar height. Does
> this make any sense? Am I grossly misunderstanding?

This check prevents dwm from drawing client titles if there is
less horizontal space left than the bar height...

Regards,

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Thu Apr 19 2007 - 09:47:37 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:40:50 UTC