|
|
@ -607,7 +607,7 @@ static void seat_update_capabilities(struct sway_seat *seat) {
|
|
|
|
case WLR_INPUT_DEVICE_TOUCH:
|
|
|
|
case WLR_INPUT_DEVICE_TOUCH:
|
|
|
|
caps |= WL_SEAT_CAPABILITY_TOUCH;
|
|
|
|
caps |= WL_SEAT_CAPABILITY_TOUCH;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case WLR_INPUT_DEVICE_TABLET_TOOL:
|
|
|
|
case WLR_INPUT_DEVICE_TABLET:
|
|
|
|
caps |= WL_SEAT_CAPABILITY_POINTER;
|
|
|
|
caps |= WL_SEAT_CAPABILITY_POINTER;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case WLR_INPUT_DEVICE_SWITCH:
|
|
|
|
case WLR_INPUT_DEVICE_SWITCH:
|
|
|
@ -665,7 +665,7 @@ static const char *get_builtin_output_name(void) {
|
|
|
|
static bool is_touch_or_tablet_tool(struct sway_seat_device *seat_device) {
|
|
|
|
static bool is_touch_or_tablet_tool(struct sway_seat_device *seat_device) {
|
|
|
|
switch (seat_device->input_device->wlr_device->type) {
|
|
|
|
switch (seat_device->input_device->wlr_device->type) {
|
|
|
|
case WLR_INPUT_DEVICE_TOUCH:
|
|
|
|
case WLR_INPUT_DEVICE_TOUCH:
|
|
|
|
case WLR_INPUT_DEVICE_TABLET_TOOL:
|
|
|
|
case WLR_INPUT_DEVICE_TABLET:
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -680,7 +680,7 @@ static void seat_apply_input_mapping(struct sway_seat *seat,
|
|
|
|
switch (sway_device->input_device->wlr_device->type) {
|
|
|
|
switch (sway_device->input_device->wlr_device->type) {
|
|
|
|
case WLR_INPUT_DEVICE_POINTER:
|
|
|
|
case WLR_INPUT_DEVICE_POINTER:
|
|
|
|
case WLR_INPUT_DEVICE_TOUCH:
|
|
|
|
case WLR_INPUT_DEVICE_TOUCH:
|
|
|
|
case WLR_INPUT_DEVICE_TABLET_TOOL:
|
|
|
|
case WLR_INPUT_DEVICE_TABLET:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
return; // these devices don't support mappings
|
|
|
|
return; // these devices don't support mappings
|
|
|
@ -873,7 +873,7 @@ void seat_configure_device(struct sway_seat *seat,
|
|
|
|
case WLR_INPUT_DEVICE_TOUCH:
|
|
|
|
case WLR_INPUT_DEVICE_TOUCH:
|
|
|
|
seat_configure_touch(seat, seat_device);
|
|
|
|
seat_configure_touch(seat, seat_device);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case WLR_INPUT_DEVICE_TABLET_TOOL:
|
|
|
|
case WLR_INPUT_DEVICE_TABLET:
|
|
|
|
seat_configure_tablet_tool(seat, seat_device);
|
|
|
|
seat_configure_tablet_tool(seat, seat_device);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case WLR_INPUT_DEVICE_TABLET_PAD:
|
|
|
|
case WLR_INPUT_DEVICE_TABLET_PAD:
|
|
|
@ -912,7 +912,7 @@ void seat_reset_device(struct sway_seat *seat,
|
|
|
|
case WLR_INPUT_DEVICE_TOUCH:
|
|
|
|
case WLR_INPUT_DEVICE_TOUCH:
|
|
|
|
seat_reset_input_config(seat, seat_device);
|
|
|
|
seat_reset_input_config(seat, seat_device);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case WLR_INPUT_DEVICE_TABLET_TOOL:
|
|
|
|
case WLR_INPUT_DEVICE_TABLET:
|
|
|
|
seat_reset_input_config(seat, seat_device);
|
|
|
|
seat_reset_input_config(seat, seat_device);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case WLR_INPUT_DEVICE_TABLET_PAD:
|
|
|
|
case WLR_INPUT_DEVICE_TABLET_PAD:
|
|
|
|