Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Compositor cannot customize the wl_data_device.set_selection policy #1138

Closed
emersion opened this issue Jul 17, 2018 · 0 comments
Closed

Compositor cannot customize the wl_data_device.set_selection policy #1138

emersion opened this issue Jul 17, 2018 · 0 comments

Comments

@emersion
Copy link
Member

emersion commented Jul 17, 2018

The handler directly calls wlr_seat_set_selection, without giving the compositor a chance to accept or reject the request.

We should do something similar to wl_pointer.set_cursor which has a request_set_cursor event.

Same applies to start_drag.

@emersion emersion added the seat label Nov 28, 2018
emersion added a commit to emersion/wlroots that referenced this issue Nov 29, 2018
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).

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 swaywm#1138

[1]: swaywm#1367 (comment)
emersion added a commit to emersion/wlroots that referenced this issue Nov 29, 2018
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 swaywm#1138

[1]: swaywm#1367 (comment)
emersion added a commit to emersion/wlroots that referenced this issue Dec 2, 2018
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 swaywm#1138

[1]: swaywm#1367 (comment)
emersion added a commit to emersion/wlroots that referenced this issue Dec 3, 2018
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 swaywm#1138

[1]: swaywm#1367 (comment)
emersion added a commit to emersion/wlroots that referenced this issue Jan 21, 2019
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 swaywm#1138

[1]: swaywm#1367 (comment)
emersion added a commit to emersion/wlroots that referenced this issue Jan 21, 2019
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 swaywm#1138

[1]: swaywm#1367 (comment)
emersion added a commit to emersion/wlroots that referenced this issue Jan 21, 2019
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 swaywm#1138

[1]: swaywm#1367 (comment)
emersion added a commit to emersion/wlroots that referenced this issue Jan 22, 2019
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 swaywm#1138

[1]: swaywm#1367 (comment)
emersion added a commit that referenced this issue Jan 24, 2019
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 #1138

[1]: #1367 (comment)
ddevault pushed a commit to swaywm/rootston that referenced this issue Aug 8, 2019
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 swaywm/wlroots#1138

[1]: swaywm/wlroots#1367 (comment)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant