aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-15 14:48:28 +0100
committerKirill Primak <vyivel@eclair.cafe>2022-11-15 16:58:20 +0300
commit024c3e4428ad4291a83d8fb0ccfbbd068f703542 (patch)
tree3d485d411e1b678426ed0c623d4d953613ca458c /include
parente1be46875daba9a5d79f2fc7a92ead8a2285882d (diff)
input/seat: locally compute drag icon offset
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3861
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/seat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index e3a46872..4abe91f7 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -72,6 +72,7 @@ struct sway_drag_icon {
struct wl_list link; // sway_root::drag_icons
double x, y; // in layout-local coordinates
+ int dx, dy; // offset in surface-local coordinates
struct wl_listener surface_commit;
struct wl_listener map;