aboutsummaryrefslogtreecommitdiff
path: root/src/keyboard.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-03-26 21:32:30 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2020-03-26 21:32:30 +0100
commitd787e2c2cc796170325e4bf2591d0f612bff6e04 (patch)
treed751946fc4bf2d7b9dfce9a612d430ee24fa9f88 /src/keyboard.zig
parent6c12c23cdb133b4e036a9c4ea8fb03757aead323 (diff)
downloadriver-d787e2c2cc796170325e4bf2591d0f612bff6e04.tar.gz
river-d787e2c2cc796170325e4bf2591d0f612bff6e04.tar.xz
Initial atomic layout update implementation
Diffstat (limited to 'src/keyboard.zig')
-rw-r--r--src/keyboard.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.zig b/src/keyboard.zig
index 1130052..4229e0d 100644
--- a/src/keyboard.zig
+++ b/src/keyboard.zig
@@ -16,7 +16,7 @@ pub const Keyboard = struct {
pub fn init(self: *Self, seat: *Seat, device: *c.wlr_input_device) !void {
self.seat = seat;
self.device = device;
- self.wlr_keyboard = device.unnamed_37.keyboard;
+ self.wlr_keyboard = device.unnamed_133.keyboard;
// We need to prepare an XKB keymap and assign it to the keyboard. This
// assumes the defaults (e.g. layout = "us").
@@ -77,7 +77,7 @@ pub const Keyboard = struct {
@alignCast(@alignOf(*c.wlr_event_keyboard_key), data),
);
- const wlr_keyboard: *c.wlr_keyboard = keyboard.device.unnamed_37.keyboard;
+ const wlr_keyboard: *c.wlr_keyboard = keyboard.device.unnamed_133.keyboard;
// Translate libinput keycode -> xkbcommon
const keycode = event.keycode + 8;