aboutsummaryrefslogtreecommitdiff
path: root/include/xwayland/selection.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-11-28 16:37:35 +0100
committeremersion <contact@emersion.fr>2018-11-29 19:40:28 +0100
commit9f0720c03abcc600b6156b52e367d7cafcf57644 (patch)
tree84c4adf8907e0a2a188edb205b07c72f691acbb9 /include/xwayland/selection.h
parent658b5905671ec229e44986e82af2666c40435d43 (diff)
primary-selection: introduce wlr_primary_selection_source
This is a common interface that can be used for all primary selection protocols, as discussed in [1]. A new function wlr_seat_set_primary_selection is added to set the primary selection for all protocols. The seat now owns again the source, and resets the selection to NULL when destroyed. [1]: https://github.com/swaywm/wlroots/issues/1367#issuecomment-442403454
Diffstat (limited to 'include/xwayland/selection.h')
-rw-r--r--include/xwayland/selection.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/xwayland/selection.h b/include/xwayland/selection.h
index 6529e9eb..85201461 100644
--- a/include/xwayland/selection.h
+++ b/include/xwayland/selection.h
@@ -7,6 +7,8 @@
#define XDND_VERSION 5
+struct wlr_primary_selection_source;
+
struct wlr_xwm_selection;
struct wlr_xwm_selection_transfer {
@@ -62,7 +64,7 @@ int xwm_handle_xfixes_selection_notify(struct wlr_xwm *xwm,
xcb_xfixes_selection_notify_event_t *event);
bool data_source_is_xwayland(struct wlr_data_source *wlr_source);
bool primary_selection_source_is_xwayland(
- struct wlr_gtk_primary_selection_source *wlr_source);
+ struct wlr_primary_selection_source *wlr_source);
void xwm_seat_handle_start_drag(struct wlr_xwm *xwm, struct wlr_drag *drag);