revert change to getLockState (it broke the doom animation)

This commit is contained in:
Kinzie 2024-05-28 22:00:09 +01:00
parent bc496803d1
commit f9d6a3750e
No known key found for this signature in database
GPG Key ID: EF86FC12BB84F79E
1 changed files with 3 additions and 2 deletions

View File

@ -82,8 +82,9 @@ pub fn getLockState(console_dev: [:0]const u8) !struct {
numlock: bool,
capslock: bool,
} {
const fd = try std.posix.open(console_dev, .{ .ACCMODE = .RDONLY }, 0);
defer std.posix.close(fd);
const fd = std.c.open(console_dev, .{ .ACCMODE = .RDONLY });
if (fd < 0) return error.CannotOpenConsoleDev;
defer _ = std.c.close(fd);
var numlock = false;
var capslock = false;