aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/seat.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-11-29 19:30:04 +0100
committeremersion <contact@emersion.fr>2019-01-24 11:38:23 +0100
commit4cb0697e576820774013f399c89fe85673e2f338 (patch)
tree122452c6b0339b7863aaad9626c509c2d66affa7 /include/rootston/seat.h
parentc41d01306de59235256d96902cced49a8eef15e9 (diff)
data-device, primary-selection: add request_set_selection
This makes compositors able to block and/or customize set_selection requests coming from clients. For instance, it's possible for a compositor to disable rich selection content (by removing all MIME types except text/plain). This commit implements the design proposed in [1]. Two new events are added to wlr_seat: request_set_selection and request_set_primary_selection. Compositors need to listen to these events and either destroy the source or effectively set the selection. Fixes https://github.com/swaywm/wlroots/issues/1138 [1]: https://github.com/swaywm/wlroots/issues/1367#issuecomment-442403454
Diffstat (limited to 'include/rootston/seat.h')
-rw-r--r--include/rootston/seat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rootston/seat.h b/include/rootston/seat.h
index 105ba3aa..4667cd38 100644
--- a/include/rootston/seat.h
+++ b/include/rootston/seat.h
@@ -38,6 +38,8 @@ struct roots_seat {
struct wl_list tablets;
struct wl_list tablet_pads;
+ struct wl_listener request_set_selection;
+ struct wl_listener request_set_primary_selection;
struct wl_listener new_drag_icon;
struct wl_listener destroy;
};