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/output.c | |
parent | sway xcursor manager (diff) | |
download | sway-9333a7eb5329073aecfaf776c8ee0572c7dff67c.tar.gz sway-9333a7eb5329073aecfaf776c8ee0572c7dff67c.tar.zst sway-9333a7eb5329073aecfaf776c8ee0572c7dff67c.zip |
working xcursor
Diffstat (limited to 'sway/desktop/output.c')
-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 @@ | |||
12 | #include "sway/output.h" | 12 | #include "sway/output.h" |
13 | #include "sway/server.h" | 13 | #include "sway/server.h" |
14 | #include "sway/view.h" | 14 | #include "sway/view.h" |
15 | #include "sway/input/input-manager.h" | ||
16 | #include "sway/input/seat.h" | ||
15 | 17 | ||
16 | static void output_frame_view(swayc_t *view, void *data) { | 18 | static void output_frame_view(swayc_t *view, void *data) { |
17 | struct sway_output *output = data; | 19 | struct sway_output *output = data; |
@@ -120,6 +122,11 @@ void output_add_notify(struct wl_listener *listener, void *data) { | |||
120 | output->resolution.notify = output_resolution_notify; | 122 | output->resolution.notify = output_resolution_notify; |
121 | wl_signal_add(&wlr_output->events.resolution, &output->resolution); | 123 | wl_signal_add(&wlr_output->events.resolution, &output->resolution); |
122 | 124 | ||
125 | for (int i = 0; i < server->input->seats->length; ++i) { | ||
126 | struct sway_seat *seat = server->input->seats->items[i]; | ||
127 | sway_seat_configure_xcursor(seat); | ||
128 | } | ||
129 | |||
123 | arrange_windows(output->swayc, -1, -1); | 130 | arrange_windows(output->swayc, -1, -1); |
124 | } | 131 | } |
125 | 132 | ||