xwayland: clean up seat setting

This commit is contained in:
Tony Crisci 2017-11-22 08:23:23 -05:00
parent b0683874e9
commit fc17c74516
4 changed files with 13 additions and 15 deletions

View file

@ -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);
}
}