aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-11-21 10:59:11 +0100
committeremersion <contact@emersion.fr>2018-11-21 11:16:25 +0100
commitb9a2e4ba4c92cd4c19f8cf5ed7e6603731eca9ab (patch)
tree2bba6f5007ad5a46c9d6874d2e32d0148e843ec6 /include
parent040d62de0076a349612b7c2c28c5dc5e93bb9760 (diff)
gtk-primary-selection: support multiple devices
When a client was creating multiple data devices for the same seat, we were only creating one resource. This is a protocol error. Instead, create one offer per data device. This commit also makes offers inert when their source is destroyed. Fixes part of https://github.com/swaywm/wlroots/issues/1041 Supersedes https://github.com/swaywm/wlroots/pull/1113
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_primary_selection.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/wlr/types/wlr_primary_selection.h b/include/wlr/types/wlr_primary_selection.h
index f33f6368..c11e2fab 100644
--- a/include/wlr/types/wlr_primary_selection.h
+++ b/include/wlr/types/wlr_primary_selection.h
@@ -24,8 +24,6 @@ struct wlr_primary_selection_device_manager {
void *data;
};
-struct wlr_primary_selection_offer;
-
struct wlr_primary_selection_source {
// source metadata
struct wl_array mime_types;
@@ -36,7 +34,6 @@ struct wlr_primary_selection_source {
void (*cancel)(struct wlr_primary_selection_source *source);
// source status
- struct wlr_primary_selection_offer *offer;
struct wlr_seat_client *seat_client;
struct {