mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-28 05:10:07 +01:00
xwayland: Adjust screen size with rotation
bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92076 Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Tested-by: Artem Chudinov <arzeth0@gmail.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
f6ce23fbfc
commit
e31fe8115e
1 changed files with 7 additions and 2 deletions
|
|
@ -101,8 +101,13 @@ output_handle_mode(void *data, struct wl_output *wl_output, uint32_t flags,
|
|||
if (!(flags & WL_OUTPUT_MODE_CURRENT))
|
||||
return;
|
||||
|
||||
xwl_output->width = width;
|
||||
xwl_output->height = height;
|
||||
if (xwl_output->rotation & (RR_Rotate_0 | RR_Rotate_180)) {
|
||||
xwl_output->width = width;
|
||||
xwl_output->height = height;
|
||||
} else {
|
||||
xwl_output->width = height;
|
||||
xwl_output->height = width;
|
||||
}
|
||||
|
||||
randr_mode = xwayland_cvt(width, height, refresh / 1000.0, 0, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue