|
|
@ -593,7 +593,9 @@ static void seat_apply_input_config(struct sway_seat *seat,
|
|
|
|
|
|
|
|
|
|
|
|
static void seat_configure_pointer(struct sway_seat *seat,
|
|
|
|
static void seat_configure_pointer(struct sway_seat *seat,
|
|
|
|
struct sway_seat_device *sway_device) {
|
|
|
|
struct sway_seat_device *sway_device) {
|
|
|
|
|
|
|
|
if ((seat->wlr_seat->capabilities & WL_SEAT_CAPABILITY_POINTER) == 0) {
|
|
|
|
seat_configure_xcursor(seat);
|
|
|
|
seat_configure_xcursor(seat);
|
|
|
|
|
|
|
|
}
|
|
|
|
wlr_cursor_attach_input_device(seat->cursor->cursor,
|
|
|
|
wlr_cursor_attach_input_device(seat->cursor->cursor,
|
|
|
|
sway_device->input_device->wlr_device);
|
|
|
|
sway_device->input_device->wlr_device);
|
|
|
|
seat_apply_input_config(seat, sway_device);
|
|
|
|
seat_apply_input_config(seat, sway_device);
|
|
|
@ -633,7 +635,9 @@ static void seat_configure_touch(struct sway_seat *seat,
|
|
|
|
|
|
|
|
|
|
|
|
static void seat_configure_tablet_tool(struct sway_seat *seat,
|
|
|
|
static void seat_configure_tablet_tool(struct sway_seat *seat,
|
|
|
|
struct sway_seat_device *sway_device) {
|
|
|
|
struct sway_seat_device *sway_device) {
|
|
|
|
|
|
|
|
if ((seat->wlr_seat->capabilities & WL_SEAT_CAPABILITY_POINTER) == 0) {
|
|
|
|
seat_configure_xcursor(seat);
|
|
|
|
seat_configure_xcursor(seat);
|
|
|
|
|
|
|
|
}
|
|
|
|
wlr_cursor_attach_input_device(seat->cursor->cursor,
|
|
|
|
wlr_cursor_attach_input_device(seat->cursor->cursor,
|
|
|
|
sway_device->input_device->wlr_device);
|
|
|
|
sway_device->input_device->wlr_device);
|
|
|
|
seat_apply_input_config(seat, sway_device);
|
|
|
|
seat_apply_input_config(seat, sway_device);
|
|
|
|