diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-08 21:31:07 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-08 21:31:07 +0200 |
| commit | 3332e0ab2b39c24acf713d7a19af46addc165519 (patch) | |
| tree | da2e68e1a29da77f4d0fd0d29ea09b8dd14fe619 /src/keyboard.zig | |
| parent | b2fbdf2d87e21c724d82eb59ef7f5dae26b39c7e (diff) | |
| download | river-3332e0ab2b39c24acf713d7a19af46addc165519.tar.gz river-3332e0ab2b39c24acf713d7a19af46addc165519.tar.xz | |
Fix environment of spawned processes
std.ChildProcess isn't handling environment variables set at runtime properly,
so just use libc directly.
Diffstat (limited to 'src/keyboard.zig')
| -rw-r--r-- | src/keyboard.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.zig b/src/keyboard.zig index af2786f..83bc745 100644 --- a/src/keyboard.zig +++ b/src/keyboard.zig @@ -17,7 +17,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_133.keyboard; + self.wlr_keyboard = device.unnamed_136.keyboard; // We need to prepare an XKB keymap and assign it to the keyboard. This // assumes the defaults (e.g. layout = "us"). @@ -78,7 +78,7 @@ pub const Keyboard = struct { @alignCast(@alignOf(*c.wlr_event_keyboard_key), data), ); - const wlr_keyboard: *c.wlr_keyboard = keyboard.device.unnamed_133.keyboard; + const wlr_keyboard: *c.wlr_keyboard = keyboard.device.unnamed_136.keyboard; // Translate libinput keycode -> xkbcommon const keycode = event.keycode + 8; |
