VNC-151 Refactor screenshot handling

This commit is contained in:
El 2026-05-06 08:32:12 +00:00
parent ac330bd605
commit adc4ea79fc
No known key found for this signature in database
GPG key ID: EB3F4C9EA29CDE59
6 changed files with 73 additions and 88 deletions

View file

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