renderer: fix uv calculations once and for all (#11770)
fixes synchronization of ackd sizes, fixes wrong xdg stuff
This commit is contained in:
parent
41dad38177
commit
26cbc67385
8 changed files with 85 additions and 48 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue