VNC-151 Fix crash

This commit is contained in:
El 2026-05-01 23:04:00 +03:00
parent fdefd2c2d2
commit a96f45b51c
No known key found for this signature in database
GPG key ID: EB3F4C9EA29CDE59
5 changed files with 55 additions and 17 deletions

View file

@ -126,6 +126,8 @@ void XserverDesktop::setFramebuffer(int w, int h, void* fbptr, int stride_)
{
ScreenSet layout;
server->lockScreenBuffer();
width_ = w;
height_ = h;
@ -147,6 +149,7 @@ void XserverDesktop::setFramebuffer(int w, int h, void* fbptr, int stride_)
layout = ::computeScreenLayout(&outputIdMap);
server->setPixelBuffer(this, layout);
server->unlockScreenBuffer();
}
void XserverDesktop::refreshScreenLayout()