Rename default seat to "default"

"seat0" seems to be a confusion with physical seats
This commit is contained in:
Isaac Freund 2020-04-14 14:24:47 +02:00
parent 6e2ad0583c
commit 9ee61b3bf9
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -7,7 +7,7 @@ const Server = @import("server.zig").Server;
pub const InputManager = struct { pub const InputManager = struct {
const Self = @This(); const Self = @This();
const default_seat = "seat0"; const default_seat_name = "default";
server: *Server, server: *Server,
@ -21,7 +21,7 @@ pub const InputManager = struct {
self.seats = std.TailQueue(Seat).init(); self.seats = std.TailQueue(Seat).init();
const seat_node = try server.allocator.create(std.TailQueue(Seat).Node); const seat_node = try server.allocator.create(std.TailQueue(Seat).Node);
try seat_node.data.init(self, default_seat); try seat_node.data.init(self, default_seat_name);
self.seats.prepend(seat_node); self.seats.prepend(seat_node);
// Set up handler for all new input devices made available. This // Set up handler for all new input devices made available. This