Introduce mode "locked"

This mode is automatically entered when the screen is locked.
This commit is contained in:
Leon Henrik Plickat
2020-10-19 12:39:52 +02:00
committed by Isaac Freund
parent 744e6b3052
commit 03a2da9690
5 changed files with 48 additions and 9 deletions

View File

@ -53,6 +53,9 @@ keyboards: std.TailQueue(Keyboard) = .{},
/// ID of the current keymap mode
mode_id: usize = 0,
/// ID of previous keymap mode, used when returning from "locked" mode
prev_mode_id: usize = 0,
/// Currently focused output, may be the noop output if no
focused_output: *Output,