From 26cbc67385d95ba621fe0a125a5b121ffdd09335 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 21 Sep 2025 19:27:56 +0200 Subject: renderer: fix uv calculations once and for all (#11770) fixes synchronization of ackd sizes, fixes wrong xdg stuff --- src/protocols/types/SurfaceState.cpp | 3 +++ src/protocols/types/SurfaceState.hpp | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'src/protocols') diff --git a/src/protocols/types/SurfaceState.cpp b/src/protocols/types/SurfaceState.cpp index a1195439..a8838170 100644 --- a/src/protocols/types/SurfaceState.cpp +++ b/src/protocols/types/SurfaceState.cpp @@ -97,4 +97,7 @@ void SSurfaceState::updateFrom(SSurfaceState& ref) { if (ref.updated.bits.acquire) acquire = ref.acquire; + + if (ref.updated.bits.acked) + ackedSize = ref.ackedSize; } diff --git a/src/protocols/types/SurfaceState.hpp b/src/protocols/types/SurfaceState.hpp index e11692cf..eb50a988 100644 --- a/src/protocols/types/SurfaceState.hpp +++ b/src/protocols/types/SurfaceState.hpp @@ -20,6 +20,7 @@ struct SSurfaceState { bool offset : 1; bool viewport : 1; bool acquire : 1; + bool acked : 1; } bits; } updated; @@ -37,6 +38,9 @@ struct SSurfaceState { Vector2D size, bufferSize; Vector2D offset; + // for xdg_shell resizing + Vector2D ackedSize; + // viewporter protocol surface state struct { bool hasDestination = false; -- cgit v1.2.3