mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
seat: re-map touch to output on output change
This commit is contained in:
parent
0eb1ae4d66
commit
516423f9ba
1 changed files with 3 additions and 0 deletions
|
|
@ -660,6 +660,9 @@ seat_output_layout_changed(struct seat *seat)
|
||||||
struct input *input = NULL;
|
struct input *input = NULL;
|
||||||
wl_list_for_each(input, &seat->inputs, link) {
|
wl_list_for_each(input, &seat->inputs, link) {
|
||||||
switch (input->wlr_input_device->type) {
|
switch (input->wlr_input_device->type) {
|
||||||
|
case WLR_INPUT_DEVICE_TOUCH:
|
||||||
|
map_touch_to_output(seat, input->wlr_input_device);
|
||||||
|
break;
|
||||||
case WLR_INPUT_DEVICE_TABLET_TOOL:
|
case WLR_INPUT_DEVICE_TABLET_TOOL:
|
||||||
map_input_to_output(seat, input->wlr_input_device, rc.tablet.output_name);
|
map_input_to_output(seat, input->wlr_input_device, rc.tablet.output_name);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue