Skip to content

ubuntumirclient: Avoid querying EGL surface geometry

The PowerVR driver in the JingPad is exposed to an issue where querying an EGL surface's width and height results in that surface getting drawn black or transparent, depending on Mir's pixel format.

There already is something allowing us to distinguish whether resizing has been completed or not and that is buffer size vs target size.

Take into account the actually desired target size rather than the EGL surface's current size. In case the buffer still doesn't match the desired size another bunch of redraws (due to needsRepaint()) will take care of it.

Fixes windows flickering black when resizing windows in desktop mode on the PowerVR-powered JingPad.

Merge request reports