mirror of https://github.com/fairyglade/ly.git
revert change to getLockState (it broke the doom animation)
This commit is contained in:
parent
bc496803d1
commit
f9d6a3750e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue