aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-10-07 15:57:08 +0200
committeremersion <contact@emersion.fr>2018-10-07 16:01:57 +0200
commitf44003f04bcffcaa64d811a45efea569c0dee23e (patch)
treee6f9d18adb1136d7eef87137a01970354a4aa013 /include/wlr
parenteb44d18cdd62cd04cda2660541996e5bd54504a9 (diff)
data-device: remove wlr_data_source.seat_client
Since the source doesn't always come from a client, this field doesn't make sense. It is replaced by a new "finalized" field in wlr_client_data_source. This is used to make sure set_actions is not sent after start_drag has been sent. A check in data_offer_choose_action has been removed: if an offer has been sent then start_drag has been called, no need to check. I also wanted to add a check for wl_data_source.offer, but it turns out (1) this isn't in the spec (2) it breaks GTK+. This is some preliminary work for Firefox on Wayland compatibility.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_data_device.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_data_device.h b/include/wlr/types/wlr_data_device.h
index c45e8d1c..9ce8f400 100644
--- a/include/wlr/types/wlr_data_device.h
+++ b/include/wlr/types/wlr_data_device.h
@@ -73,7 +73,6 @@ struct wlr_data_source {
// source status
bool accepted;
struct wlr_data_offer *offer;
- struct wlr_seat_client *seat_client;
// drag'n'drop status
enum wl_data_device_manager_dnd_action current_dnd_action;