[PATCH weston] window: Allow popup menu when the window is maximised

Eoff, Ullysses A ullysses.a.eoff at intel.com
Fri Jul 12 12:14:14 PDT 2013


This patch does fix the popup as requested.  However, it also enables a maximized window to be moved around by dragging the titlebar.  I don't think we want that to happen.

U. Artie 


> -----Original Message-----
> From: wayland-devel-bounces+ullysses.a.eoff=intel.com at lists.freedesktop.org [mailto:wayland-devel-
> bounces+ullysses.a.eoff=intel.com at lists.freedesktop.org] On Behalf Of Rob Bradford
> Sent: Thursday, July 11, 2013 2:36 AM
> To: wayland-devel at lists.freedesktop.org
> Cc: Rob Bradford
> Subject: [PATCH weston] window: Allow popup menu when the window is maximised
> 
> From: Rob Bradford <rob at linux.intel.com>
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=66793
> ---
>  clients/window.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/clients/window.c b/clients/window.c
> index cff7102..93a0a2c 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -2553,7 +2553,7 @@ frame_button_handler(struct widget *widget,
>  	struct display *display = window->display;
>  	int location;
> 
> -	if (window->type != TYPE_TOPLEVEL)
> +	if (!(window->type == TYPE_TOPLEVEL || window->type == TYPE_MAXIMIZED))
>  		return;
> 
>  	location = theme_get_location(display->theme, input->sx, input->sy,
> --
> 1.8.3.1
> 
> _______________________________________________
> 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