diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-07-10 13:53:27 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-10 14:03:15 -0400 |
commit | 6096d31eed4f066b6e2bc51122f5a1b47afd93f7 (patch) | |
tree | 83645654d9939241b3cdd72f148568c364a22e94 /sway/commands/new_window.c | |
parent | 32265d913653c81e54e8e17d4511aab9d4dfc73a (diff) |
config/output: correctly set width/height in apply
In apply_output_config, this sets output->{width,height} using the
values in the output box. Previously, they were being set using
wlr_output_transformed_resolution, which takes the width and height
from the wlr_output and just checks whether they should be swapped
based on the transform. This did not take into account the output's
scale. wlr_output_effective_resolution could be used instead, which
handles both transform and scale. However, the values in the output box
have already been processed by wlr_output_effective_resolution so they
can just be used directly
Diffstat (limited to 'sway/commands/new_window.c')
0 files changed, 0 insertions, 0 deletions