diff options
author | emersion <contact@emersion.fr> | 2018-05-12 16:50:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-12 16:50:46 +0100 |
commit | 059e5f6690c5d7b084517df87537ec16463d470c (patch) | |
tree | 2b05151ca3f7f9bb085b26b6cccc63663d8f6c05 | |
parent | 50922cfe0f1ca71295d331b39d695a62a60650af (diff) | |
parent | 7a952dfa2dfcd3272e75367d3c54b9794c6c1a8e (diff) | |
download | wlroots-059e5f6690c5d7b084517df87537ec16463d470c.tar.xz |
Merge pull request #971 from emersion/fix-xdg-output-transform
xdg-output: fix logical_size
-rw-r--r-- | types/wlr_xdg_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/types/wlr_xdg_output.c b/types/wlr_xdg_output.c index 20df24ba..ba99cfcb 100644 --- a/types/wlr_xdg_output.c +++ b/types/wlr_xdg_output.c @@ -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); } |