client: Add mutex round EGLSurface manipulation


The EGLSurface is manipulated from the render thread when we first
create a window with makeCurrent potentially after it's
invalidated but also directly on the main thread through QWaylandWindow::updateGeometry.

It we resize a window at the exact moment of rendering the first frame
we can concurrently enter updateSurface from two threads. We risk
creating a window twice or using the wrong size.

Pick-to: 6.8
Change-Id: I2e5c3e86d3147854c420a4fdd7afcb17ca020c36
Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
commitf2fecc67fa023e706fe6e86a1a986b596e13f769
parentd1e22e0b505d0199bae8507d26ce89cf48d8f915
authorDavid Edmundson <davidedmundson@kde.org>
committerDavid Edmundson <davidedmundson@kde.org>
commit timeMon, 18 Nov 2024 11:13:11 +0000