From c63d693a74f9003d507f335af5f7e6dbf6dcb36e Mon Sep 17 00:00:00 2001 From: Drakulix Date: Thu, 28 Dec 2017 15:33:18 +0100 Subject: [PATCH] Fix seats of version 1 --- src/wayland/seat/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wayland/seat/mod.rs b/src/wayland/seat/mod.rs index afa5e0f..724dccb 100644 --- a/src/wayland/seat/mod.rs +++ b/src/wayland/seat/mod.rs @@ -236,7 +236,9 @@ fn seat_global_bind( ) { evlh.register(&seat, seat_implementation(), token.clone(), None); let seat_mgr = evlh.state().get_mut(token); - seat.name(seat_mgr.name.clone()); + if seat.version() >= 2 { + seat.name(seat_mgr.name.clone()); + } seat.capabilities(seat_mgr.compute_caps()); seat_mgr.known_seats.push(seat); }