diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-08-01 11:45:36 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-08-01 11:45:36 -0400 |
| commit | 4237db6daefd462b0b40188d6eb2ce3765d27328 (patch) | |
| tree | 5d442bd8a365443d66da4c488f90cb194bce2009 | |
| parent | 9b757a6edc283f500accd5b8eb0284e569cd4cb6 (diff) | |
| parent | 2b3ce3701893340cd60ef06d32d6c66b5ae6beef (diff) | |
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.c | 2 |
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, WL_SEAT_CAPABILITY_POINTER | WL_SEAT_CAPABILITY_TOUCH); - seat_configure_xcursor(seat); wl_list_insert(&input->seats, &seat->link); @@ -438,6 +437,7 @@ static void seat_apply_input_config(struct sway_seat *seat, static void seat_configure_pointer(struct sway_seat *seat, struct sway_seat_device *sway_device) { + seat_configure_xcursor(seat); wlr_cursor_attach_input_device(seat->cursor->cursor, sway_device->input_device->wlr_device); seat_apply_input_config(seat, sway_device); |
