aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/input/events.c
AgeCommit message (Collapse)Author
2019-06-09config/input: validate xkb keymap before storingBrian Ashworth
This allows for an optional validation stage when storing an input config. Currently, only the xkb keymap is validated. If storing the delta input config will result in any invalid xkb keymaps, the input config will not be stored and error will be populated with the first line of the xkbcommon log.
2019-01-21input_cmd_events: allow toggle modes to be listedBrian Ashworth
This extends `input <identifier> events toggle` to allow for an optional list of modes to toggle through. If no event modes are listed, all supported modes are cycled through (current behavior). If event modes are listed, they will be cycled through, defaulting to the first mode listed when the current mode is not in the list. This modes listed will also not be checked to see if the device supports them and may fail.
2019-01-14Remove now-unused "input" argument of cmd_results_newM Stoeckl
Patch tested by compiling with `__attribute__ ((format (printf, 2, 3)))` applied to `cmd_results_new`. String usage constants have been converted from pointers to arrays when encountered. General handler format strings were sometimes modified to include the old input string, especially for unknown command errors.
2019-01-09input_cmd_events: implement toggleBrian Ashworth
Implements toggling input events during runtime. This will not attempt to toggle to a mode that is not supported by the device. When toggling the wildcard input, the device specific input configs are altered. Each device will cycle one supported mode.
2018-09-23Implement support for input wildcardBrian Ashworth
2018-07-09Update for swaywm/wlroots#1126emersion
2018-07-02input_config: free new_input_config on errorDominique Martinet
Found through static analysis.
2018-01-20input config handler contextTony Crisci
2018-01-05sway: change all sway_log to wlr_logDominique Martinet
2017-12-16rename config apply cmdsTony Crisci
2017-12-12config cleanupTony Crisci
2017-12-11input configTony Crisci
2017-11-18Move everything to sway/old/Drew DeVault
2017-03-10UnGNUify the codebaseDrew DeVault
2016-09-02merge in latest commitsZandr Martin
2016-09-01refactor commands.cZandr Martin