aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-28 14:16:14 -0400
committeremersion <contact@emersion.fr>2018-03-28 14:16:14 -0400
commit73394deb761232ff6a5a12400fe9e9fc5ab51114 (patch)
tree56c0d05a3d22dde8fcaf1f8faa425b65061a8930 /include
parent0d7a81ccdfda7d21ece47e0715a25bd301363cc2 (diff)
xwayland: send DND_POSITION
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_data_device.h7
-rw-r--r--include/xwayland/xwm.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_data_device.h b/include/wlr/types/wlr_data_device.h
index cefcc979..cd266795 100644
--- a/include/wlr/types/wlr_data_device.h
+++ b/include/wlr/types/wlr_data_device.h
@@ -107,10 +107,17 @@ struct wlr_drag {
struct {
struct wl_signal focus;
+ struct wl_signal motion;
struct wl_signal destroy;
} events;
};
+struct wlr_drag_motion_event {
+ struct wlr_drag *drag;
+ uint32_t time;
+ double sx, sy;
+};
+
/**
* Create a wl data device manager global for this display.
*/
diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h
index e672a2df..d4795d3f 100644
--- a/include/xwayland/xwm.h
+++ b/include/xwayland/xwm.h
@@ -122,6 +122,9 @@ struct wlr_xwm {
struct wl_list surfaces; // wlr_xwayland_surface::link
struct wl_list unpaired_surfaces; // wlr_xwayland_surface::unpaired_link
+ struct wlr_drag *drag;
+ struct wlr_xwayland_surface *drag_focus;
+
const xcb_query_extension_reply_t *xfixes;
#ifdef WLR_HAS_XCB_ERRORS
xcb_errors_context_t *errors_context;
@@ -133,6 +136,7 @@ struct wlr_xwm {
struct wl_listener seat_primary_selection;
struct wl_listener seat_start_drag;
struct wl_listener seat_drag_focus;
+ struct wl_listener seat_drag_motion;
struct wl_listener seat_drag_destroy;
};