summaryrefslogtreecommitdiff
path: root/seat.c
AgeCommit message (Collapse)Author
2026-10-29seat: don't repeat password submissionMartin Trojer
Thread a bool repeat flag from the key-repeat timer into swaylock_handle_key (real presses pass false) and skip submit_password on repeats, so holding Return/KP_Enter or Ctrl-D/J/M no longer sends repeated attempts to PAM. Repeats of other keys are unchanged, and the submit keys stay defined in one place (password.c).
2026-07-09Fix stray character in password buffer after suspend/resume cycleConstantin
2026-02-09seat: don't abort on wl_keyboard.keymap_format.no_keymapKirill Primak
2025-10-05Update layout indicator as soon as layout changesAndré Marçais
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.)
2022-02-10seat: NULL-check on keyboard.modifiers eventtiosgz
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.
2020-06-19Implement key repeatMartin Dørum
2020-03-29Use xkb_keymap_new_from_buffer instead of xkb_keymap_new_from_stringNils
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.
2019-06-22Damage state when the keyboard layout changesAbdelhakim Qbaich
2019-06-22Minor editsAbdelhakim Qbaich
2019-01-14Implement logging and remove wlroots dependencyBrian Ashworth
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
2019-01-13Convert swaylock into standalone projectDrew DeVault
2019-01-03swaylock: Fix caps lock not updating immediatelyOscar Cowdery Lack
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.
2018-10-24Add multiseat support to swaylockRyan Dwyer
2018-10-06swaylock: Support keyboard and pointer disconnects and reconnectsRyan Dwyer
2018-07-09Update for swaywm/wlroots#1126emersion
2018-06-08swaylock: implement ^U to clear bufferDominique Martinet
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
2018-04-24Improved key handling in swaylockMattias Eriksson
Make escape clear buffer Add indicator states for ctrl,shift,super et al Add CapsLock indicator
2018-04-04exit() needs stdlib.hDrew DeVault
inb4 acrisci
2018-04-04Add password buffer, refactor rendering/surfacesDrew DeVault
2018-04-04Split seat code into its own fileDrew DeVault