summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-08-01 11:45:36 -0400
committerLibravatar GitHub <noreply@github.com>2018-08-01 11:45:36 -0400
commitf078f7fdfa8c1b2549178b8137c6731c2fff6d3f (patch)
tree5d442bd8a365443d66da4c488f90cb194bce2009
parentMerge pull request #2395 from RedSoxFan/create-mouse-binding-list (diff)
parentXCursor is not configured if no pointer device is available (diff)
downloadsway-f078f7fdfa8c1b2549178b8137c6731c2fff6d3f.tar.gz
sway-f078f7fdfa8c1b2549178b8137c6731c2fff6d3f.tar.zst
sway-f078f7fdfa8c1b2549178b8137c6731c2fff6d3f.zip
Merge pull request #2397 from chr0me-sh/hide-cursor-if-no-pointer
XCursor is not configured if no pointer device is available
-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);