mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
... 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.
23 lines
533 B
C
23 lines
533 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_TABLET_TOOL_H
|
|
#define LABWC_TABLET_TOOL_H
|
|
|
|
#include <wayland-server-core.h>
|
|
#include <wlr/types/wlr_tablet_v2.h>
|
|
|
|
struct seat;
|
|
|
|
struct drawing_tablet_tool {
|
|
struct seat *seat;
|
|
struct wlr_tablet_v2_tablet_tool *tool_v2;
|
|
struct {
|
|
struct wl_listener set_cursor;
|
|
struct wl_listener destroy;
|
|
} handlers;
|
|
struct wl_list link; /* seat.tablet_tools */
|
|
};
|
|
|
|
void tablet_tool_init(struct seat *seat,
|
|
struct wlr_tablet_tool *wlr_tablet_tool);
|
|
|
|
#endif /* LABWC_TABLET_TOOL_H */
|