Merge pull request #971 from emersion/fix-xdg-output-transform

xdg-output: fix logical_size
master
emersion 7 years ago committed by GitHub
commit 059e5f6690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,9 +25,9 @@ static void output_send_details(struct wl_resource *resource,
struct wlr_output_layout_output *layout_output) { struct wlr_output_layout_output *layout_output) {
zxdg_output_v1_send_logical_position(resource, zxdg_output_v1_send_logical_position(resource,
layout_output->x, layout_output->y); layout_output->x, layout_output->y);
zxdg_output_v1_send_logical_size(resource, int width, height;
(float)layout_output->output->width / layout_output->output->scale, wlr_output_effective_resolution(layout_output->output, &width, &height);
(float)layout_output->output->height / layout_output->output->scale); zxdg_output_v1_send_logical_size(resource, width, height);
zxdg_output_v1_send_done(resource); zxdg_output_v1_send_done(resource);
} }

Loading…
Cancel
Save