8060d826b7
It was discovered in issue #99 that the implementations of the 90 and 270 degree rotations were actually the inverse of what the Wayland specification spelled out. This patch fixes the libweston implementation to follow the specification. As a result, the behaviour of the the weston.ini transform key also changes. To force all users to re-think their configuration, the transform key values are also changed. Since Weston and libweston change their behaviour, the handling of clients' buffer transform changes too. All the functions had their 90/270 cases simply swapped, probably due to confusion of whether WL_OUTPUT_TRANSFORM_* refers to rotating the monitor or the content. Hint: a key to understanding weston_matrix_rotate_xy(m, c, s) is that the rotation matrix is formed as c -s s c that is, it's column-major. This fooled me at first. Fixing window.c fixes weston-terminal and weston-transformed. In simple-damage, window_get_transformed_ball() is fixed to follow the proper transform definitions, but the fix to the viewport path in redraw() is purely mechanical. The viewport path looks broken to me in the presence of any transform, but it is not this patch's job to fix it. Screen-share fix just repeats the general code fix pattern, I did not even try to understand that bit. https://gitlab.freedesktop.org/wayland/weston/issues/99 Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> |
||
---|---|---|
.. | ||
calibrator.c | ||
clickdot.c | ||
cliptest.c | ||
confine.c | ||
content_protection.c | ||
desktop-shell.c | ||
dnd.c | ||
editor.c | ||
eventdemo.c | ||
flower.c | ||
fullscreen.c | ||
gears.c | ||
image.c | ||
ivi-shell-user-interface.c | ||
keyboard.c | ||
meson.build | ||
multi-resource.c | ||
nested-client.c | ||
nested.c | ||
presentation-shm.c | ||
resizor.c | ||
scaler.c | ||
screenshot.c | ||
simple-damage.c | ||
simple-dmabuf-egl.c | ||
simple-dmabuf-v4l.c | ||
simple-egl.c | ||
simple-im.c | ||
simple-shm.c | ||
simple-touch.c | ||
smoke.c | ||
stacking.c | ||
subsurfaces.c | ||
terminal.c | ||
touch-calibrator.c | ||
transformed.c | ||
weston-debug.c | ||
weston-info.c | ||
window.c | ||
window.h |