mirror of
https://github.com/labwc/labwc.git
synced 2025-11-09 13:30:01 -05:00
input: prevent cursor notifications from pointer and tablet tool
... at the same time. Omit cursor notifications from a pointer when a tablet tool (stylus/pen) is in proximity. We expect to get cursor notifications from the tablet tool instead.
This commit is contained in:
parent
d00711bc45
commit
2388f37cc7
5 changed files with 24 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ handle_destroy(struct wl_listener *listener, void *data)
|
|||
struct drawing_tablet_tool *tool =
|
||||
wl_container_of(listener, tool, handlers.destroy);
|
||||
|
||||
wl_list_remove(&tool->link);
|
||||
wl_list_remove(&tool->handlers.set_cursor.link);
|
||||
wl_list_remove(&tool->handlers.destroy.link);
|
||||
free(tool);
|
||||
|
|
@ -65,4 +66,5 @@ tablet_tool_init(struct seat *seat,
|
|||
wlr_tablet_tool->wheel ? " wheel" : "");
|
||||
CONNECT_SIGNAL(tool->tool_v2, &tool->handlers, set_cursor);
|
||||
CONNECT_SIGNAL(wlr_tablet_tool, &tool->handlers, destroy);
|
||||
wl_list_insert(&seat->tablet_tools, &tool->link);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue