aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2022-11-15 14:48:28 +0100
committerFurkan Sahin <furkan-dev@proton.me>2022-11-15 14:48:28 +0100
commit313d11dedbff397c81cc3317b54d1a3942d76fa2 (patch)
tree3d485d411e1b678426ed0c623d4d953613ca458c /include
parentf7c083b69d896bada110069dfdf17bd1b3f08bfd (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;