renderer: fix uv calculations once and for all (#11770)

fixes synchronization of ackd sizes, fixes wrong xdg stuff
This commit is contained in:
Vaxry 2025-09-21 19:27:56 +02:00 committed by GitHub
parent 41dad38177
commit 26cbc67385
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 85 additions and 48 deletions

View file

@ -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;
}

View file

@ -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;