Merge pull request #463 from emersion/fix-hw-cursor-move-segfault

Fix segfault when moving hardware cursor
master
Scott Anderson 7 years ago committed by GitHub
commit dad19394cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -634,8 +634,10 @@ static bool wlr_drm_connector_move_cursor(struct wlr_output *output,
struct wlr_box transformed_box;
wlr_output_transform_apply_to_box(transform, &box, &transformed_box);
if (plane != NULL) {
transformed_box.x -= plane->cursor_hotspot_x;
transformed_box.y -= plane->cursor_hotspot_y;
}
return drm->iface->crtc_move_cursor(drm, conn->crtc, transformed_box.x,
transformed_box.y);

Loading…
Cancel
Save