mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
backend/wayland: Set cursor indivdualy per output
This commit is contained in:
parent
44531e16e0
commit
2eae9ec7c8
3 changed files with 14 additions and 17 deletions
|
|
@ -419,8 +419,10 @@ static void output_destroy(struct wlr_output *wlr_output) {
|
|||
}
|
||||
|
||||
void update_wl_output_cursor(struct wlr_wl_output *output) {
|
||||
struct wlr_wl_pointer *pointer = output->backend->current_pointer;
|
||||
if (pointer && pointer->output == output && output->enter_serial) {
|
||||
struct wlr_wl_pointer *pointer = output->cursor.pointer;
|
||||
if (pointer) {
|
||||
assert(pointer->output == output);
|
||||
assert(output->enter_serial);
|
||||
wl_pointer_set_cursor(pointer->wl_pointer, output->enter_serial,
|
||||
output->cursor.surface, output->cursor.hotspot_x,
|
||||
output->cursor.hotspot_y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue