Add /api/send_full_frame

This commit is contained in:
Lauri Kasanen
2022-06-23 18:53:27 +03:00
parent 61f08d4986
commit 8b71ea3cd9
5 changed files with 47 additions and 0 deletions

View File

@@ -49,6 +49,8 @@
extern "C" {
void vncSetGlueContext(int screenIndex);
extern int wakeuppipe[2];
}
using namespace rfb;
@@ -307,6 +309,15 @@ void XserverDesktop::handleSocketEvent(int fd, bool read, bool write)
{
try {
if (read) {
if (fd == wakeuppipe[0]) {
unsigned char buf;
while (::read(fd, &buf, 1) > 0);
server->refreshClients();
return;
}
if (handleListenerEvent(fd, &listeners, server))
return;
}