aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-08 07:22:26 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-08 08:04:03 -0500
commitec7fc42a00db8c230ca1a050f0a1f7badc697fa5 (patch)
tree3e0614e8a497fbc12f2669945a43dcd310809c05 /include
parentbasic input manager and seat (diff)
downloadsway-ec7fc42a00db8c230ca1a050f0a1f7badc697fa5.tar.gz
sway-ec7fc42a00db8c230ca1a050f0a1f7badc697fa5.tar.zst
sway-ec7fc42a00db8c230ca1a050f0a1f7badc697fa5.zip
sway cursor
Diffstat (limited to 'include')
-rw-r--r--include/sway/cursor.h26
-rw-r--r--include/sway/seat.h1
2 files changed, 27 insertions, 0 deletions
diff --git a/include/sway/cursor.h b/include/sway/cursor.h
new file mode 100644
index 00000000..647bc8f1
--- /dev/null
+++ b/include/sway/cursor.h
@@ -0,0 +1,26 @@
1#ifndef _SWAY_CURSOR_H
2#define _SWAY_CURSOR_H
3
4#include "sway/seat.h"
5
6struct sway_cursor {
7 struct wlr_cursor *cursor;
8
9 struct wl_listener motion;
10 struct wl_listener motion_absolute;
11 struct wl_listener button;
12 struct wl_listener axis;
13
14 struct wl_listener touch_down;
15 struct wl_listener touch_up;
16 struct wl_listener touch_motion;
17
18 struct wl_listener tool_axis;
19 struct wl_listener tool_tip;
20
21 struct wl_listener request_set_cursor;
22};
23
24struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
25
26#endif
diff --git a/include/sway/seat.h b/include/sway/seat.h
index a2b8fe51..2f8ca72e 100644
--- a/include/sway/seat.h
+++ b/include/sway/seat.h
@@ -6,6 +6,7 @@
6 6
7struct sway_seat { 7struct sway_seat {
8 struct wlr_seat *seat; 8 struct wlr_seat *seat;
9 struct sway_cursor *cursor;
9}; 10};
10 11
11struct sway_seat *sway_seat_create(struct wl_display *display, 12struct sway_seat *sway_seat_create(struct wl_display *display,