Apply output transformation to pointer coordinates

pull/20/head v0.1.2
Andri Yngvason 2020-03-07 14:19:02 +00:00
parent e8279e57f5
commit 7ea17d04aa
1 changed files with 4 additions and 1 deletions

View File

@ -395,7 +395,10 @@ static void on_pointer_event(struct nvnc_client* client, uint16_t x, uint16_t y,
struct nvnc* nvnc = nvnc_get_server(client);
struct wayvnc* wayvnc = nvnc_get_userdata(nvnc);
pointer_set(&wayvnc->pointer_backend, x, y, button_mask);
uint32_t xfx = 0, xfy = 0;
output_transform_coord(wayvnc->selected_output, x, y, &xfx, &xfy);
pointer_set(&wayvnc->pointer_backend, xfx, xfy, button_mask);
}
static void on_key_event(struct nvnc_client* client, uint32_t symbol,