sway-patched-tray-menu/sway/commands/input
iff 3dd2f4a67f
commands/input/map_from_region: don't treat 0x prefix as hex identifier
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
}
```
2023-09-07 01:31:35 +00:00
..
accel_profile.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
calibration_matrix.c calibration_matrix: expect 6 individual values 2019-07-05 18:41:56 +03:00
click_method.c input_cmd_click_method: fix typo in error text 2020-06-19 22:48:53 +02:00
drag.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
drag_lock.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
dwt.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
dwtp.c Support libinput's 1.21 new dwtp option 2022-10-30 10:56:34 +01:00
events.c Make libinput backend optional 2022-11-28 13:28:15 -05:00
left_handed.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
map_from_region.c commands/input/map_from_region: don't treat 0x prefix as hex identifier 2023-09-07 01:31:35 +00:00
map_to_output.c Use an enum instead of a marker string for map_to_ 2019-11-17 13:34:24 +01:00
map_to_region.c commands: add printf attribute to cmd_results_new() 2023-04-14 18:34:54 +02:00
middle_emulation.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
natural_scroll.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
pointer_accel.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
repeat_delay.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
repeat_rate.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
rotation_angle.c Add libinput RotationAngle 2022-12-09 11:28:53 +01:00
scroll_button.c commands: add printf attribute to cmd_results_new() 2023-04-14 18:34:54 +02:00
scroll_button_lock.c input/libinput: add scroll_button_lock method 2023-06-16 15:30:04 +02:00
scroll_factor.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
scroll_method.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
tap.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
tap_button_map.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
tool_mode.c input/tablet: add tool_mode option to set tablet tools as relative input 2020-10-12 15:01:37 +02:00
xkb_capslock.c Remove now-unused "input" argument of cmd_results_new 2019-01-14 08:05:29 -05:00
xkb_file.c input_cmd_xkb_file: allow shell path expansion 2019-11-21 10:36:15 -05:00
xkb_layout.c input_cmd_xkb_*: cleanup includes 2019-07-17 19:26:58 -04:00
xkb_model.c input_cmd_xkb_*: cleanup includes 2019-07-17 19:26:58 -04:00
xkb_numlock.c input_cmd_xkb_*: cleanup includes 2019-07-17 19:26:58 -04:00
xkb_options.c input_cmd_xkb_*: cleanup includes 2019-07-17 19:26:58 -04:00
xkb_rules.c input_cmd_xkb_*: cleanup includes 2019-07-17 19:26:58 -04:00
xkb_switch_layout.c Remove access to wlr_input_device union 2022-06-22 12:44:15 -04:00
xkb_variant.c input_cmd_xkb_*: cleanup includes 2019-07-17 19:26:58 -04:00