mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
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
This commit is contained in:
parent
658b590567
commit
9f0720c03a
15 changed files with 209 additions and 209 deletions
|
|
@ -43,7 +43,6 @@ struct wlr_xwayland {
|
|||
struct wl_display *wl_display;
|
||||
struct wlr_compositor *compositor;
|
||||
struct wlr_seat *seat;
|
||||
struct wlr_gtk_primary_selection_device_manager *gtk_primary_selection;
|
||||
|
||||
struct {
|
||||
struct wl_signal ready;
|
||||
|
|
@ -226,10 +225,6 @@ void wlr_xwayland_surface_set_fullscreen(struct wlr_xwayland_surface *surface,
|
|||
void wlr_xwayland_set_seat(struct wlr_xwayland *xwayland,
|
||||
struct wlr_seat *seat);
|
||||
|
||||
void wlr_xwayland_set_gtk_primary_selection_device_manager(
|
||||
struct wlr_xwayland *xwayland,
|
||||
struct wlr_gtk_primary_selection_device_manager *manager);
|
||||
|
||||
bool wlr_surface_is_xwayland_surface(struct wlr_surface *surface);
|
||||
|
||||
struct wlr_xwayland_surface *wlr_xwayland_surface_from_wlr_surface(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue