Skip to content

wayland: Fix buffer ref'ing in org_kde_kwin_shadow.commit

Vlad Zahorodnii requested to merge work/zzag/shadow-buffer-ref into master

In case the current state and the pending state have the same buffer for a particular side or a corner, that buffer can be prematurely released because the buffer in the current state is unreferenced first.

The ref/unref order should be vice versa to ensure that the GraphicsBuffer is not released prematurely.

Merge request reports