On Tue, Sep 24, 2013 at 12:45:53AM +0200, Hardening wrote:
> Resize the panel and the background when we're notified of a mode
> switch.

Almost forgot this one, thanks for the IRC reminder.

Kristian

> ---
>  clients/desktop-shell.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
> index 599c0a5..5d7d765 100644
> --- a/clients/desktop-shell.c
> +++ b/clients/desktop-shell.c
> @ -1160,6 +1160,12 @@ output_handle_mode(void *data,
>                  int height,
>                  int refresh)
>  {
> +     struct output *output = (struct output *)data;
> +
> +     if(flags & WL_OUTPUT_MODE_CURRENT) {
> +             window_schedule_resize(output->panel->window, width, 32);
> +             window_schedule_resize(output->background->window, width, 
> height);
> +     }
>  }
>  
>  static void
> -- 
> 1.8.1.2
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to