aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-12-17 20:03:26 -0500
committerGitHub <noreply@github.com>2017-12-17 20:03:26 -0500
commit10c72f4bf6202bfce89e5a40b03475dd28cd68df (patch)
tree3c13e6a58f51e920e60ad57c033307eddca1fe23 /rootston
parent3363ea869a250a54214af93d6fc7cdc22f1fad9e (diff)
parent804c7a73a6d7af18e202109d331d1208af7f57d4 (diff)
Merge pull request #487 from emersion/xwm-selection
xwm clipboard sync, 2nd edition
Diffstat (limited to 'rootston')
-rw-r--r--rootston/input.c2
-rw-r--r--rootston/main.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/rootston/input.c b/rootston/input.c
index ce20e840..a3904a61 100644
--- a/rootston/input.c
+++ b/rootston/input.c
@@ -27,7 +27,7 @@ static const char *device_type(enum wlr_input_device_type type) {
return NULL;
}
-static struct roots_seat *input_get_seat(struct roots_input *input, char *name) {
+struct roots_seat *input_get_seat(struct roots_input *input, char *name) {
struct roots_seat *seat = NULL;
wl_list_for_each(seat, &input->seats, link) {
if (strcmp(seat->seat->name, name) == 0) {
diff --git a/rootston/main.c b/rootston/main.c
index 3b65a067..58e5a5e5 100644
--- a/rootston/main.c
+++ b/rootston/main.c
@@ -60,6 +60,9 @@ int main(int argc, char **argv) {
ready(NULL, NULL);
#else
if (server.desktop->xwayland != NULL) {
+ struct roots_seat *xwayland_seat =
+ input_get_seat(server.input, ROOTS_CONFIG_DEFAULT_SEAT_NAME);
+ wlr_xwayland_set_seat(server.desktop->xwayland, xwayland_seat->seat);
wl_signal_add(&server.desktop->xwayland->events.ready,
&server.desktop->xwayland_ready);
server.desktop->xwayland_ready.notify = ready;