diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-12-17 20:03:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-17 20:03:26 -0500 |
commit | 10c72f4bf6202bfce89e5a40b03475dd28cd68df (patch) | |
tree | 3c13e6a58f51e920e60ad57c033307eddca1fe23 /xwayland/xwayland.c | |
parent | 3363ea869a250a54214af93d6fc7cdc22f1fad9e (diff) | |
parent | 804c7a73a6d7af18e202109d331d1208af7f57d4 (diff) |
Merge pull request #487 from emersion/xwm-selection
xwm clipboard sync, 2nd edition
Diffstat (limited to 'xwayland/xwayland.c')
-rw-r--r-- | xwayland/xwayland.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c index 4d2a4b0a..6dc71689 100644 --- a/xwayland/xwayland.c +++ b/xwayland/xwayland.c @@ -218,6 +218,10 @@ static int xserver_handle_ready(int signal_number, void *data) { return 1; } + if (wlr_xwayland->seat) { + xwm_set_seat(wlr_xwayland->xwm, wlr_xwayland->seat); + } + wl_event_source_remove(wlr_xwayland->sigusr1_source); wlr_xwayland->sigusr1_source = NULL; @@ -368,3 +372,12 @@ void wlr_xwayland_set_cursor(struct wlr_xwayland *wlr_xwayland, wlr_xwayland->cursor->hotspot_x = hotspot_x; wlr_xwayland->cursor->hotspot_y = hotspot_y; } + +void wlr_xwayland_set_seat(struct wlr_xwayland *xwayland, + struct wlr_seat *seat) { + xwayland->seat = seat; + + if (xwayland->xwm) { + xwm_set_seat(xwayland->xwm, seat); + } +} |