mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2026-07-17 16:36:49 +00:00
VNC-151 Fix crash
This commit is contained in:
parent
fdefd2c2d2
commit
a96f45b51c
5 changed files with 55 additions and 17 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue