mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
working xcursor
This commit is contained in:
parent
7c67bea942
commit
9333a7eb53
4 changed files with 24 additions and 12 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue