On Mon, Jan 20, 2014 at 11:28:33AM +0100, Dominik Vogt wrote:
> At the moment, a Window shaded to a corner is has the hight of the
> window title, but just the twice the width of twice the border
> width, like this:
> 
>   ++
>   ||
>   ||
>   ||
>   ++
> 
> I think it would be mor natural and more convenient to reduce
> windows shaded to a corner to a small square (twice the width of
> the borders):
> 
>   ++
>   ++
> 
> That is because the title is unusable anyway (the buttons and the
> window name are hidden, and it looks the same no matter whether
> the window is sticky or has any state that would normally
> indicated in the title bar).  The attached patch does this change.
> 
> Any opinions?
> 
> (To test, run "windowshade nw".)
> 
> Ciao
> 
> Dominik ^_^  ^_^
> 
> -- 
> 
> Dominik Vogt
> IBM Germany

> >From 1e2c358594c3bd0a48142b8df0b24d61f60f87bb Mon Sep 17 00:00:00 2001
> From: Dominik Vogt <[email protected]>
> Date: Mon, 20 Jan 2014 11:16:57 +0100
> Subject: [PATCH] Experimental: Reduce windows a square twice the border size
>  in corners.
> 
> ---
>  fvwm/geometry.c |   13 ++++++++++++-
>  1 file changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/fvwm/geometry.c b/fvwm/geometry.c
> index f6eeeeb..226997f 100644
> --- a/fvwm/geometry.c
> +++ b/fvwm/geometry.c
> @@ -343,7 +343,18 @@ void get_shaded_geometry(
>       int big_height = big_g->height;
>       int d;
>  
> -     get_window_borders(fw, &b);
> +     switch (SHADED_DIR(fw))
> +     {
> +     case DIR_SW:
> +     case DIR_SE:
> +     case DIR_NW:
> +     case DIR_NE:
> +             get_window_borders_no_title(fw, &b);
> +             break;
> +     default:
> +             get_window_borders(fw, &b);
> +             break;
> +     }
>       *small_g = *big_g;
>       d = 0;
>       switch (SHADED_DIR(fw))
> -- 
> 1.7.9.5
> 



Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt

Reply via email to