mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-20 06:59:42 -05:00
xwayland: clean up seat setting
This commit is contained in:
parent
b0683874e9
commit
fc17c74516
4 changed files with 13 additions and 15 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue