config/output: rebase cursors after config applied

When applying an output config, an output may transform or be altered
in some way that effects the cursor. In order for the cursor images to
be updated properly, all cursors need to be rebased after applying
output configs.
master
Brian Ashworth 5 years ago committed by Drew DeVault
parent f59b665792
commit 19d05d3ae0

@ -5,9 +5,11 @@
#include <sys/socket.h>
#include <sys/wait.h>
#include <unistd.h>
#include <wlr/types/wlr_cursor.h>
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_output.h>
#include "sway/config.h"
#include "sway/input/cursor.h"
#include "sway/output.h"
#include "sway/tree/root.h"
#include "log.h"
@ -455,6 +457,12 @@ void apply_output_config_to_outputs(struct output_config *oc) {
}
}
}
struct sway_seat *seat;
wl_list_for_each(seat, &server.input->seats, link) {
wlr_seat_pointer_clear_focus(seat->wlr_seat);
cursor_rebase(seat->cursor);
}
}
void reset_outputs(void) {

Loading…
Cancel
Save