aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/input/map_from_region.c
Commit message (Collapse)AuthorAge
* Define _POSIX_C_SOURCE globallyLibravatar Simon Ser2024-02-23
| | | | See discussion in https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4555
* commands/input/map_from_region: don't treat 0x prefix as hex identifierLibravatar iff2023-09-07
| | | | | | | | | | | | | | | | | | | | | When using the `map_from_region` for pen tables, we will usually make the available area as big as possible while maintaining the proportions with the screen. As most of the tablets uses a 16:10 ratios while the most popular screen ratios is still 16:9, the argument for most people should be `0x0 1x0.9` to have the maximum effective area. However, the argument above won't work because the current code will treat `0x...` as a hexadecimal number, instead of setting both `x` and `y` to `0`. This fix allows the use of the following syntax: ``` input type:tablet_tool { map_from_region 0x0 1x0.9 } ```
* Remove now-unused "input" argument of cmd_results_newLibravatar M Stoeckl2019-01-14
| | | | | | | | | 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.
* Implement support for input wildcardLibravatar Brian Ashworth2018-09-23
|
* input_config: free new_input_config on errorLibravatar Dominique Martinet2018-07-02
| | | | Found through static analysis.
* Add map_from_region commandLibravatar emersion2018-04-26