| Age | Commit message (Collapse) | Author |
|
Wait till after `xkb_state_update_mask` before rendering so that when
`render_frame` sees the changed keyboard layout state. (Otherwise the
layout indicator shows what the layout was before the modifier event.)
|
|
It can be sent before keyboard.keymap (for example
when running swaylock from a different tty), in
which case the xkb state isn't initialized yet.
|
|
|
|
xkb_keymap_new_from_string just calls xkb_keymap_new_from_buffer with size as `strlen(string)`.
https://github.com/xkbcommon/libxkbcommon/blob/0f1cae0cc482575c71d29d6241115886ebf25dec/src/keymap.c#L164
According to the [spec](https://gitlab.freedesktop.org/wayland/wayland/-/blob/master/protocol/wayland.xml#L2182), MAP_PRIVATE should be used.
|
|
|
|
|
|
This implements a simpler version of the wlroots logger for swaylock.
With this logger, the dependency on wlroots can be dropped. This also
adds a debug flag and disables debugging output by default
|
|
|
|
Partially fixes #2788. This change makes it so the lock screen is
redrawn whenever the caps lock modifier state changes, rather
on relying on the keypress event. This didn't work because
caps lock is disabled when the key is released, not pressed,
so the caps lock indicator does not go away until the next
keypress event.
|
|
|
|
|
|
|
|
The whole state->xcb.modifiers thing didn't work at all (always 0)
The xkb doc says "[xkb_state_serialize_mods] should not be used in
regular clients; please use the xkb_state_mod_*_is_active API instead"
so here it is
|
|
Make escape clear buffer
Add indicator states for ctrl,shift,super et al
Add CapsLock indicator
|
|
inb4 acrisci
|
|
|
|
|