Transform hotspot with cursor

Fix #188
This commit is contained in:
Versus Void 2017-10-06 09:07:08 +03:00
parent b2d478a418
commit 641d08ce7e
10 changed files with 65 additions and 29 deletions

View file

@ -112,7 +112,8 @@ static void handle_output_add(struct output_state *ostate) {
// TODO the cursor must be set depending on which surface it is displayed
// over which should happen in the compositor.
if (!wlr_output_set_cursor(wlr_output, image->buffer,
image->width, image->width, image->height)) {
image->width, image->width, image->height,
image->hotspot_x, image->hotspot_y)) {
wlr_log(L_DEBUG, "Failed to set hardware cursor");
return;
}