client: Update cached buffer size on startup


EGL Windows cache the buffer size to use, so that we can access it from
multiple threads safely later. This is updated every time application
code is resized including the first configure event.

There may be an existing size at the time the window is created, and
application code could call makeCurrent before the window has the first
expose event. To cover this we should initialize the default
sizeWithMargins on creation. The rest of the updateSurface method will
do nothing as we have no existing window and create is false.

Fixes: QTBUG-129630
Fixes: QTBUG-129403
Pick-to: 6.8
Pick-to: 6.7
Change-Id: I403a5f834bb5da5c34e712927c652033aa9bca3e
Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
commitae741501eed46e6210e5967e3473e8ffc489f224
parent5170fbf2c5a4d39d11fbb403c737f9515fd44c74
authorDavid Edmundson <davidedmundson@kde.org>
committerDavid Edmundson <davidedmundson@kde.org>
commit timeMon, 7 Oct 2024 09:09:11 +0000