KASM-3119 send full frame on permission changes

This commit is contained in:
mattmcclaskey
2022-09-06 17:48:44 +00:00
parent 924329900d
commit 1e4ca3563c
8 changed files with 52 additions and 10 deletions

View File

@@ -76,7 +76,7 @@ VNCSConnectionST::VNCSConnectionST(VNCServerST* server_, network::Socket *s,
kasmpasswdpath[0] = '\0';
wordexp_t wexp;
if (!wordexp(rfb::Server::kasmPasswordFile, &wexp, WRDE_NOCMD))
strncpy(kasmpasswdpath, wexp.we_wordv[0], 4096);
strncpy(kasmpasswdpath, wexp.we_wordv[0], 4095);
kasmpasswdpath[4095] = '\0';
wordfree(&wexp);

View File

@@ -1181,3 +1181,13 @@ void VNCServerST::handleClipboardAnnounceBinary(VNCSConnectionST* client,
clipboardClient = client;
desktop->handleClipboardAnnounceBinary(num, mimes);
}
void VNCServerST::refreshClients()
{
add_changed(pb->getRect());
std::list<VNCSConnectionST*>::iterator i;
for (i = clients.begin(); i != clients.end(); i++) {
(*i)->add_changed_all();
}
}

View File

@@ -43,7 +43,6 @@ namespace rfb {
class ListConnInfo;
class PixelBuffer;
class KeyRemapper;
class network::GetAPIMessager;
class VNCServerST : public VNCServer,
public Timer::Callback,
@@ -198,6 +197,8 @@ namespace rfb {
void handleClipboardAnnounceBinary(VNCSConnectionST* client, const unsigned num,
const char mimes[][32]);
void refreshClients();
protected:
friend class VNCSConnectionST;