diff options
author | Erico Nunes <ernunes@redhat.com> | 2023-03-20 17:08:56 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-05-31 09:43:56 +0300 |
commit | b15e44adebc21d968c7f7f57b55636ee04150ad5 (patch) | |
tree | b240c5cbf32d523b85c6e24d903dc47df82fe017 /ui/vdagent.c | |
parent | 95c9059e66526bc0f728c45516cb0366ecaeefc7 (diff) |
ui/gtk-egl: fix scaling for cursor position in scanout mode
vc->gfx.w and vc->gfx.h are not updated appropriately in this code path,
which leads to a different scaling factor for rendering the cursor on
some edge cases (e.g. the focus has left and re-entered the gtk window).
This can be reproduced using vhost-user-gpu with the gtk ui on the x11
backend.
Use the surface dimensions which are already updated accordingly.
Signed-off-by: Erico Nunes <ernunes@redhat.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230320160856.364319-2-ernunes@redhat.com>
(cherry picked from commit f8a951bb951140a585341c700ebeec58d83f7bbc)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'ui/vdagent.c')
0 files changed, 0 insertions, 0 deletions