aboutsummaryrefslogtreecommitdiff
path: root/xwayland/xwayland.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-11-22 08:23:23 -0500
committerTony Crisci <tony@dubstepdish.com>2017-11-22 08:23:23 -0500
commitfc17c74516c7c843f15426bca754a16f963ad348 (patch)
tree91dc83c932cea2100acd36bcc2b888be967a335d /xwayland/xwayland.c
parentb0683874e98a2dab7cc73734355bb8e0ad656113 (diff)
xwayland: clean up seat setting
Diffstat (limited to 'xwayland/xwayland.c')
-rw-r--r--xwayland/xwayland.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c
index bd43fefb..4db30985 100644
--- a/xwayland/xwayland.c
+++ b/xwayland/xwayland.c
@@ -196,6 +196,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;
@@ -344,5 +348,9 @@ void wlr_xwayland_set_cursor(struct wlr_xwayland *wlr_xwayland,
void wlr_xwayland_set_seat(struct wlr_xwayland *xwayland,
struct wlr_seat *seat) {
- xwm_set_seat(xwayland->xwm, seat);
+ xwayland->seat = seat;
+
+ if (xwayland->xwm) {
+ xwm_set_seat(xwayland->xwm, seat);
+ }
}