mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-14 23:38:22 +00:00
renderer: untransform textures matching display transform
fixes #6754 This will break if the client uses a transform that is not equal to the display, reverting to old behavior. Combining transforms is left as a todo for the future.
This commit is contained in:
@@ -406,6 +406,9 @@ void CWLSurfaceResource::commitPendingState() {
|
||||
pending.damage.clear();
|
||||
pending.bufferDamage.clear();
|
||||
|
||||
if (current.buffer && current.buffer->texture)
|
||||
current.buffer->texture->m_eTransform = wlTransformToHyprutils(current.transform);
|
||||
|
||||
if (current.buffer && !bufferReleased) {
|
||||
current.buffer->update(accumulateCurrentBufferDamage());
|
||||
|
||||
|
Reference in New Issue
Block a user