Переглянути джерело

We should only send ExtendedDesktopSize to a client supporting both it and

the old DesktopSize.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3817 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.0.90
Pierre Ossman 15 роки тому
джерело
коміт
2ee430a66d
1 змінених файлів з 6 додано та 4 видалено
  1. 6
    4
      common/rfb/VNCSConnectionST.cxx

+ 6
- 4
common/rfb/VNCSConnectionST.cxx Переглянути файл

@@ -171,10 +171,12 @@ void VNCSConnectionST::pixelBufferChange()
cp.height = server->pb->height();
cp.screenLayout = server->screenLayout;
if (state() == RFBSTATE_NORMAL) {
if (!writer()->writeSetDesktopSize() &&
!writer()->writeExtendedDesktopSize()) {
close("Client does not support desktop resize");
return;
// We should only send EDS to client asking for both
if (!writer()->writeExtendedDesktopSize()) {
if (!writer()->writeSetDesktopSize()) {
close("Client does not support desktop resize");
return;
}
}
}
}

Завантаження…
Відмінити
Зберегти