[server] Don't make assumptions about the order of damage_buffer and attach requests
ClosedPublic

Authored by zzag on Mar 19 2020, 8:17 PM.

Details

Summary

The spec says nothing about the order between damage_buffer and attach
requests.

Test Plan

Firefox doesn't become frozen. Although there are still issues with resizing.

Diff Detail

Repository
R127 KWayland
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
zzag created this revision.Mar 19 2020, 8:17 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMar 19 2020, 8:17 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
zzag requested review of this revision.Mar 19 2020, 8:17 PM
zzag added a comment.Mar 19 2020, 8:26 PM

In general, the idea of raising a protocol error when the client tries to damage a surface with no buffer seems sensible. But the spec doesn't say damage_buffer requests must be followed by attach requests and we can't really predict the future.

davidedmundson accepted this revision.Mar 19 2020, 8:35 PM
davidedmundson added a subscriber: davidedmundson.

Heh, I'm having some de ja vu.

I did this already, for the same situation for the same bug:
https://bugs.kde.org/show_bug.cgi?id=397834#c19

https://phabricator.kde.org/D28147

for damage()

Then damageBuffer got introduced with the existing bug!

This revision is now accepted and ready to land.Mar 19 2020, 8:35 PM
This revision was automatically updated to reflect the committed changes.