aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-10 08:48:44 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-10 08:48:44 -0500
commite69b052a6d88b1c24d5e48ad086480ee04c07c81 (patch)
tree0c76b0023ef379df124c04ee8dfe9583d49202b0 /include
parentworking xcursor (diff)
downloadsway-e69b052a6d88b1c24d5e48ad086480ee04c07c81.tar.gz
sway-e69b052a6d88b1c24d5e48ad086480ee04c07c81.tar.zst
sway-e69b052a6d88b1c24d5e48ad086480ee04c07c81.zip
working pointer motion
Diffstat (limited to 'include')
-rw-r--r--include/sway/container.h4
-rw-r--r--include/sway/input/cursor.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/container.h b/include/sway/container.h
index 08a98ed9..0e1cc8a3 100644
--- a/include/sway/container.h
+++ b/include/sway/container.h
@@ -3,6 +3,7 @@
3#include <stdint.h> 3#include <stdint.h>
4#include <sys/types.h> 4#include <sys/types.h>
5#include <wlr/types/wlr_box.h> 5#include <wlr/types/wlr_box.h>
6#include <wlr/types/wlr_surface.h>
6#include "list.h" 7#include "list.h"
7 8
8typedef struct sway_container swayc_t; 9typedef struct sway_container swayc_t;
@@ -136,4 +137,7 @@ swayc_t *destroy_view(swayc_t *view);
136 137
137swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); 138swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type);
138 139
140swayc_t *swayc_at(swayc_t *parent, double lx, double ly,
141 struct wlr_surface **surface, double *sx, double *sy);
142
139#endif 143#endif
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h
index aa873f46..cc529de6 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -4,9 +4,12 @@
4#include "sway/input/seat.h" 4#include "sway/input/seat.h"
5 5
6struct sway_cursor { 6struct sway_cursor {
7 struct sway_seat *seat;
7 struct wlr_cursor *cursor; 8 struct wlr_cursor *cursor;
8 struct wlr_xcursor_manager *xcursor_manager; 9 struct wlr_xcursor_manager *xcursor_manager;
9 10
11 double x, y;
12
10 struct wl_listener motion; 13 struct wl_listener motion;
11 struct wl_listener motion_absolute; 14 struct wl_listener motion_absolute;
12 struct wl_listener button; 15 struct wl_listener button;