Re: [dev] [dwm] [patch] bugfix in status bar width problem

From: garbeam <>
Date: Fri, 17 Jun 2011 20:24:12 +0100

Hi Rudy,

On 13 June 2011 10:45, Rudy Matela <> wrote:
> There is a bug in the last version of dwm (verified on 5.8, 5.8.2 and
> r1549) regarding the bar width. By reading the BUGS file, I can see
> that it may be similar to the bug reported by "voltaic". In my case,
> it appears whenever I change the orientation (rotation of the
> monitor). For example:
> $ xrandr --output LVDS1 --rotate left
> $ sleep 2
> $ xrandr --output LVDS1 --rotate normal
> The bar is like cut off. I can't see the text in my statusbar. By
> verifing the code, I saw that "dc.drawable" is not updated correctly
> when these rotations happen. So, when changing from 600x800 to
> 800x600, the dc.drawable keeps the dimension of 600x16 (instead of the
> necessary 800x16).
> Attached goes a patch (against revision 1549) that resolves a status
> bar width problem. It's a quick fix and perhaps the changes I've made
> should be relocated inside updategeom() function. Maybe this also
> resolves the issue reported by voltaic.

I applied your patch. It seems to be sensible, though a real fix is a
bit of reworking the multscreen support, which I plan for 6.0.

Received on Fri Jun 17 2011 - 21:24:12 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 17 2011 - 21:36:03 CEST