summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar chr0me <lachlan.barker@iinet.net.au>2018-08-01 19:48:43 +0800
committerLibravatar chr0me <lachlan.barker@iinet.net.au>2018-08-01 23:27:36 +0800
commit77d74dd34fd7126d6159234c883b50a5a021e24a (patch)
tree5d442bd8a365443d66da4c488f90cb194bce2009 /sway
parentMerge pull request #2395 from RedSoxFan/create-mouse-binding-list (diff)
downloadsway-77d74dd34fd7126d6159234c883b50a5a021e24a.tar.gz
sway-77d74dd34fd7126d6159234c883b50a5a021e24a.tar.zst
sway-77d74dd34fd7126d6159234c883b50a5a021e24a.zip
XCursor is not configured if no pointer device is available
Diffstat (limited to 'sway')
-rw-r--r--sway/input/seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 53a92989..a4a449e4 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -393,7 +393,6 @@ struct sway_seat *seat_create(struct sway_input_manager *input,
393 WL_SEAT_CAPABILITY_POINTER | 393 WL_SEAT_CAPABILITY_POINTER |
394 WL_SEAT_CAPABILITY_TOUCH); 394 WL_SEAT_CAPABILITY_TOUCH);
395 395
396 seat_configure_xcursor(seat);
397 396
398 wl_list_insert(&input->seats, &seat->link); 397 wl_list_insert(&input->seats, &seat->link);
399 398
@@ -438,6 +437,7 @@ static void seat_apply_input_config(struct sway_seat *seat,
438 437
439static void seat_configure_pointer(struct sway_seat *seat, 438static void seat_configure_pointer(struct sway_seat *seat,
440 struct sway_seat_device *sway_device) { 439 struct sway_seat_device *sway_device) {
440 seat_configure_xcursor(seat);
441 wlr_cursor_attach_input_device(seat->cursor->cursor, 441 wlr_cursor_attach_input_device(seat->cursor->cursor,
442 sway_device->input_device->wlr_device); 442 sway_device->input_device->wlr_device);
443 seat_apply_input_config(seat, sway_device); 443 seat_apply_input_config(seat, sway_device);