[PATCH] Resize the shell when the mode is switched

Kristian Høgsberg hoegsberg at gmail.com
Sun Sep 29 14:25:42 PDT 2013


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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list