[PATCH weston 2/2] desktop-shell: Remove the panel popup

Pekka Paalanen ppaalanen at gmail.com
Mon Apr 13 05:28:05 PDT 2015


On Wed,  8 Apr 2015 11:51:58 -0700
Dima Ryazanov <dima at gmail.com> wrote:

> It doesn't work anymore, and it never did anything useful.
> 
> Signed-off-by: Dima Ryazanov <dima at gmail.com>
> ---
>  clients/desktop-shell.c | 33 ---------------------------------
>  1 file changed, 33 deletions(-)
> 
> diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
> index ac2928f..e2f9f80 100644
> --- a/clients/desktop-shell.c
> +++ b/clients/desktop-shell.c
> @@ -145,26 +145,6 @@ sigchild_handler(int s)
>  		fprintf(stderr, "child %d exited\n", pid);
>  }
>  
> -static void
> -menu_func(void *data, struct input *input, int index)
> -{
> -	printf("Selected index %d from a panel menu.\n", index);
> -}
> -
> -static void
> -show_menu(struct panel *panel, struct input *input, uint32_t time)
> -{
> -	int32_t x, y;
> -	static const char *entries[] = {
> -		"Roy", "Pris", "Leon", "Zhora"
> -	};
> -
> -	input_get_position(input, &x, &y);
> -	window_show_menu(window_get_display(panel->window),
> -			 input, time, panel->window,
> -			 x - 10, y - 10, menu_func, entries, 4);
> -}
> -
>  static int
>  is_desktop_painted(struct desktop *desktop)
>  {
> @@ -454,18 +434,6 @@ panel_add_clock(struct panel *panel)
>  }
>  
>  static void
> -panel_button_handler(struct widget *widget,
> -		     struct input *input, uint32_t time,
> -		     uint32_t button,
> -		     enum wl_pointer_button_state state, void *data)
> -{
> -	struct panel *panel = data;
> -
> -	if (button == BTN_RIGHT && state == WL_POINTER_BUTTON_STATE_PRESSED)
> -		show_menu(panel, input, time);
> -}
> -
> -static void
>  panel_resize_handler(struct widget *widget,
>  		     int32_t width, int32_t height, void *data)
>  {
> @@ -553,7 +521,6 @@ panel_create(struct desktop *desktop)
>  
>  	widget_set_redraw_handler(panel->widget, panel_redraw_handler);
>  	widget_set_resize_handler(panel->widget, panel_resize_handler);
> -	widget_set_button_handler(panel->widget, panel_button_handler);
>  	
>  	panel_add_clock(panel);
>  

Hi,

both patches R-b me and pushed.
   6d11679..cead794  master -> master

Thanks,
pq


More information about the wayland-devel mailing list