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>