[wayland] Recursively destroy WindowPixmap objects
ClosedPublic

Authored by zzag on Mar 19 2020, 5:49 PM.

Details

Summary

We need to destroy the root WindowPixmap together with all of its
children; otherwise, buffers that are attached to subsurfaces will
not be released.

Test Plan

weston-subsurfaces doesn't quit with an error message saying that
all buffers are held by the compositor.

Diff Detail

Repository
R108 KWin
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, 5:49 PM
Restricted Application added a project: KWin. · View Herald TranscriptMar 19 2020, 5:49 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.Mar 19 2020, 5:49 PM
zzag added a comment.Mar 19 2020, 5:49 PM

This patch doesn't fix frozen firefox windows.

davidedmundson accepted this revision.Mar 19 2020, 5:55 PM
This revision is now accepted and ready to land.Mar 19 2020, 5:55 PM
zzag added a comment.Mar 19 2020, 6:20 PM

@davidedmundson Would it be okay if I push this patch to Plasma/5.18? My original intent was to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1593478

This revision was automatically updated to reflect the committed changes.
baberts added a subscriber: baberts.