diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-09-21 19:27:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-21 19:27:56 +0200 |
| commit | 26cbc67385d95ba621fe0a125a5b121ffdd09335 (patch) | |
| tree | 2aa7c05ce78ab4ea55e8df81f1c99553509b37b1 /src/protocols | |
| parent | 41dad381770300fe1015ad8cdd1f370a8fd4e5d5 (diff) | |
renderer: fix uv calculations once and for all (#11770)
fixes synchronization of ackd sizes, fixes wrong xdg stuff
Diffstat (limited to 'src/protocols')
| -rw-r--r-- | src/protocols/types/SurfaceState.cpp | 3 | ||||
| -rw-r--r-- | src/protocols/types/SurfaceState.hpp | 4 |
2 files changed, 7 insertions, 0 deletions
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; |
