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

From: Rudy Matela <rudy_AT_matela.com.br>
Date: Fri, 17 Jun 2011 14:39:13 -0400

Anyone has the same bug as me?

On Mon, Jun 13, 2011 at 05:45, Rudy Matela <rudy_AT_matela.com.br> wrote:
> Hello,
>
> 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.
>
> Regards,
> Rudy
>
Received on Fri Jun 17 2011 - 20:39:13 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 17 2011 - 20:48:03 CEST