clients/window: dismiss window on tablet tool up events
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
This commit is contained in:
parent
6d3d98851e
commit
14fc87cc42
|
@ -5354,6 +5354,16 @@ menu_touch_up_handler(struct widget *widget,
|
|||
menu_destroy(menu);
|
||||
}
|
||||
|
||||
static void
|
||||
menu_tablet_tool_up_handler(struct widget *widget, struct tablet_tool *tool,
|
||||
void *data)
|
||||
{
|
||||
struct menu *menu = data;
|
||||
|
||||
input_ungrab(tool->input);
|
||||
menu_destroy(menu);
|
||||
}
|
||||
|
||||
static void
|
||||
menu_redraw_handler(struct widget *widget, void *data)
|
||||
{
|
||||
|
@ -5460,6 +5470,7 @@ create_menu(struct display *display,
|
|||
widget_set_motion_handler(menu->widget, menu_motion_handler);
|
||||
widget_set_button_handler(menu->widget, menu_button_handler);
|
||||
widget_set_touch_up_handler(menu->widget, menu_touch_up_handler);
|
||||
widget_set_tablet_tool_up_handler(menu->widget, menu_tablet_tool_up_handler);
|
||||
|
||||
input_grab(input, menu->widget, 0);
|
||||
frame_resize_inside(menu->frame, 200, count * 20);
|
||||
|
|
Loading…
Reference in New Issue