Fix seats of version 1

This commit is contained in:
Drakulix 2017-12-28 15:33:18 +01:00
parent 6c6d54064d
commit c63d693a74
1 changed files with 3 additions and 1 deletions

View File

@ -236,7 +236,9 @@ fn seat_global_bind(
) { ) {
evlh.register(&seat, seat_implementation(), token.clone(), None); evlh.register(&seat, seat_implementation(), token.clone(), None);
let seat_mgr = evlh.state().get_mut(token); let seat_mgr = evlh.state().get_mut(token);
if seat.version() >= 2 {
seat.name(seat_mgr.name.clone()); seat.name(seat_mgr.name.clone());
}
seat.capabilities(seat_mgr.compute_caps()); seat.capabilities(seat_mgr.compute_caps());
seat_mgr.known_seats.push(seat); seat_mgr.known_seats.push(seat);
} }