Skip to content

Commit

Permalink
Merge pull request #971 from emersion/fix-xdg-output-transform
Browse files Browse the repository at this point in the history
xdg-output: fix logical_size
  • Loading branch information
emersion authored May 12, 2018
2 parents 50922cf + 7a952df commit 059e5f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/wlr_xdg_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ static void output_send_details(struct wl_resource *resource,
struct wlr_output_layout_output *layout_output) {
zxdg_output_v1_send_logical_position(resource,
layout_output->x, layout_output->y);
zxdg_output_v1_send_logical_size(resource,
(float)layout_output->output->width / layout_output->output->scale,
(float)layout_output->output->height / layout_output->output->scale);
int width, height;
wlr_output_effective_resolution(layout_output->output, &width, &height);
zxdg_output_v1_send_logical_size(resource, width, height);
zxdg_output_v1_send_done(resource);
}

Expand Down

0 comments on commit 059e5f6

Please sign in to comment.