aboutsummaryrefslogtreecommitdiff
path: root/sway/input/keyboard.c
AgeCommit message (Collapse)Author
2018-06-12Fix keyboard shortcut handling inconsistenciesfrsfnrrg
* Ensure that modifier keys are identified even when the next key does not produce a keysym. This requires that modifier change tracking be done for each sway_shortcut_state. * Permit regular and --release shortcuts on the same key combination. Distinct bindings are identified for press and release cases; note that the release binding needs to be identified for both key press and key release events. * Maintain ascending sort order for the shortcut state list, and keep track of the number of pressed key ids, for simpler (and hence faster) searching of the list of key bindings. * Move binding duplicate detection into get_active_binding to avoid duplicating error messages.
2018-06-02Make command block implementation genericBrian Ashworth
2018-06-01Style fix, redundant entry removal, fix extra keysym deletefrsfnrrg
2018-06-01Rename update_shortcut_model to update_shortcut_statefrsfnrrg
2018-06-01Rename check_shortcut_model to get_active_bindingfrsfnrrg
2018-06-01Style fixed for keyboard.cfrsfnrrg
2018-06-01Remove almost-always redundant loop in key handlingfrsfnrrg
2018-06-01Rewrite shortcut handling code to avoid hardcoded valuesfrsfnrrg
The same shortcut algorithm is now used for keycodes, raw keysyms, and translated keysyms. Pressed keysyms are now stored in association with the keycodes that generated them. Modifier keycodes (and associated keysyms) are identified retroactively by the subsequent change to the modifier flags.
2018-05-27Implement bindsym/bindcode --lockedfrsfnrrg
Adds the --locked flag to bindsym and bindcode commands. When a keyboard's associated seat has an exclusive client (i.e, a screenlocker), then bindings are only executed if they have the locked flag. When there is no such client, this restriction is lifted.
2018-05-13Idle handling for dpms/lockscreen et alMattias Eriksson
Swayidle handles idle events and allows for dpms and lockscreen handling. It also handles systemd sleep events, and can raise a lockscreen on sleep Fixes #541
2018-04-18Make key repeat configurableRyan Dwyer
This creates two input commands for configuring the repeat delay and rate. Example config: input "myidentifier" { repeat_delay 250 repeat_rate 25 }
2018-04-02Merge branch 'wlroots' into seat-fixesTony Crisci
2018-04-02dont copy input configTony Crisci
2018-04-02Partially implement move commandDrew DeVault
Works: - move [container|window] to workspace <name> - Note, this should be able to move C_CONTAINER but this is untested - move [workspace] to output [left|right|up|down|<name>] Not implemented yet: - move [left|right|up|down] - move scratchpad - move position
2018-02-24take seat param for handle_command and renameTony Crisci
2018-01-20add kill commandTony Crisci
2018-01-17update for new wlr-keyboard modifiersTony Crisci
2018-01-05sway: change all sway_log to wlr_logDominique Martinet
2018-01-04cleanup bindingsTony Crisci
2018-01-04binding releaseTony Crisci
2017-12-29fix nitpicksTony Crisci
2017-12-28overwrite old bindingsTony Crisci
2017-12-28fix keyboard_execute_bindcodeTony Crisci
2017-12-28bindcodeTony Crisci
2017-12-27run compositor bindings lastTony Crisci
2017-12-27run binding commandTony Crisci
2017-12-27match user bindsymTony Crisci
2017-12-27compositor bindingsTony Crisci
2017-12-27keyboard translate keysymsTony Crisci
2017-12-19handle keymap not foundTony Crisci
2017-12-18remove assumption of one device per identifierTony Crisci
2017-12-16fix keyboard hotpluggingTony Crisci
2017-12-16keyboard cleanupTony Crisci
2017-12-15xkb configTony Crisci
2017-12-14basic configurationTony Crisci
2017-12-12sway input deviceTony Crisci
2017-12-10keyboard removeTony Crisci
2017-12-10basic keyboardTony Crisci