mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
xdg-output: fix logical_size
It should be the size of the output in layout coordinates. Prior to this commit we were not applying the output transform to the size.
This commit is contained in:
parent
50922cfe0f
commit
7a952dfa2d
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue