diff options
author | emersion <contact@emersion.fr> | 2018-11-28 16:37:35 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-11-29 19:40:28 +0100 |
commit | 9f0720c03abcc600b6156b52e367d7cafcf57644 (patch) | |
tree | 84c4adf8907e0a2a188edb205b07c72f691acbb9 /rootston | |
parent | 658b5905671ec229e44986e82af2666c40435d43 (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 'rootston')
-rw-r--r-- | rootston/desktop.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c index dc5caad9..9b5291a3 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -957,16 +957,8 @@ struct roots_desktop *desktop_create(struct roots_server *server, WLR_SERVER_DECORATION_MANAGER_MODE_CLIENT); desktop->idle = wlr_idle_create(server->wl_display); desktop->idle_inhibit = wlr_idle_inhibit_v1_create(server->wl_display); - desktop->primary_selection_device_manager = wlr_gtk_primary_selection_device_manager_create(server->wl_display); -#if WLR_HAS_XWAYLAND - if (desktop->xwayland != NULL) { - wlr_xwayland_set_gtk_primary_selection_device_manager( - desktop->xwayland, desktop->primary_selection_device_manager); - } -#endif - desktop->input_inhibit = wlr_input_inhibit_manager_create(server->wl_display); desktop->input_inhibit_activate.notify = input_inhibit_activate; |