diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-09 14:06:00 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-09 14:06:00 -0500 |
commit | 9333a7eb5329073aecfaf776c8ee0572c7dff67c (patch) | |
tree | 1438a16a31d2df9ec035e856fd4c89abe6c34e38 /sway/desktop | |
parent | 7c67bea942d44b93cf03c3223067d2668905a3c0 (diff) | |
download | sway-9333a7eb5329073aecfaf776c8ee0572c7dff67c.tar.xz |
working xcursor
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/output.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 7eb48bdf..d2003834 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -12,6 +12,8 @@ #include "sway/output.h" #include "sway/server.h" #include "sway/view.h" +#include "sway/input/input-manager.h" +#include "sway/input/seat.h" static void output_frame_view(swayc_t *view, void *data) { struct sway_output *output = data; @@ -120,6 +122,11 @@ void output_add_notify(struct wl_listener *listener, void *data) { output->resolution.notify = output_resolution_notify; wl_signal_add(&wlr_output->events.resolution, &output->resolution); + for (int i = 0; i < server->input->seats->length; ++i) { + struct sway_seat *seat = server->input->seats->items[i]; + sway_seat_configure_xcursor(seat); + } + arrange_windows(output->swayc, -1, -1); } |