~sil2100/unity/fix-1061081-7.0

Viewing all changes in revision 2798.

UnityWindow: add PixmapTexture struct: never separate a binded texture to its pixmap

Or it will lead to crashes. Now we cache both the GLTexture and the binded XPixmap, so
that we delete both together and there won't be crashes.

Texutures binded to Pixmaps should not be alive when the binded pixmap has been
destroyed. So, now we have a new PixmapTexture struct that keeps both the data
structures alive.
We now use a smart pointer of PixmapTexture to cache both the temporary decorations,
inside a CairoContext, and the ones at class level.. Fixes: https://bugs.launchpad.net/bugs/1061396. Approved by Neil J. Patel.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: