Backport patch to fix crash when enabling Window List extension

LP: #2081957

Merge request reports

Loading