aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorTudor Roman <tudurom@gmail.com>2020-04-15 15:04:40 +0000
committerGitHub <noreply@github.com>2020-04-15 17:04:40 +0200
commitffcf25cc2593c1b7acb93c85d4782c0fe4cc7082 (patch)
tree735b024ed6afa805fa9022899182f3a9d76c80c6 /include/wlr
parent25d0d1be3a64ceaf9997c390147996dadbf93aee (diff)
seat: add selection event docs
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_seat.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h
index 4f1aa261..1b912875 100644
--- a/include/wlr/types/wlr_seat.h
+++ b/include/wlr/types/wlr_seat.h
@@ -251,11 +251,18 @@ struct wlr_seat {
// wlr_seat_pointer_request_set_cursor_event
struct wl_signal request_set_cursor;
- // wlr_seat_request_set_selection_event
- struct wl_signal request_set_selection;
+ // Called when an application _wants_ to set the selection (user copies some data).
+ // Compositors should listen to this event and call wlr_seat_set_selection
+ // if they want to accept the client's request.
+ struct wl_signal request_set_selection; // wlr_seat_request_set_selection_event
+ // Called after the data source is set for the selection.
struct wl_signal set_selection;
- // wlr_seat_request_set_primary_selection_event
- struct wl_signal request_set_primary_selection;
+
+ // Called when an application _wants_ to set the primary selection (user selects some data).
+ // Compositors should listen to this event and call wlr_seat_set_primary_selection
+ // if they want to accept the client's request.
+ struct wl_signal request_set_primary_selection; // wlr_seat_request_set_primary_selection_event
+ // Called after the primary selection source object is set.
struct wl_signal set_primary_selection;
// wlr_seat_request_start_drag_event