summaryrefslogtreecommitdiffstats
path: root/unix/xserver
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-10-05 17:11:25 +0200
committerPierre Ossman <ossman@cendio.se>2018-10-10 13:07:19 +0200
commiteef6c9ad834974c7f1f124a6a9984f01c9d0690e (patch)
tree558e4e694a4cedc4d42badd43dd3d8a8fc8ccd95 /unix/xserver
parente6aab2465493d6088c5218d888d9b77d069e514c (diff)
downloadtigervnc-eef6c9ad834974c7f1f124a6a9984f01c9d0690e.tar.gz
tigervnc-eef6c9ad834974c7f1f124a6a9984f01c9d0690e.zip
Remove QueryConnectionHandler
Make things simpler by making this a part of the SDesktop interface that always needs to be implemented.
Diffstat (limited to 'unix/xserver')
-rw-r--r--unix/xserver/hw/vnc/XserverDesktop.cc12
-rw-r--r--unix/xserver/hw/vnc/XserverDesktop.h9
2 files changed, 15 insertions, 6 deletions
diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc
index 89b55e69..e61472b3 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.cc
+++ b/unix/xserver/hw/vnc/XserverDesktop.cc
@@ -81,7 +81,6 @@ XserverDesktop::XserverDesktop(int screenIndex_,
server = new VNCServerST(name, this);
setFramebuffer(width, height, fbptr, stride);
- server->setQueryConnectionHandler(this);
for (std::list<SocketListener*>::iterator i = listeners.begin();
i != listeners.end();
@@ -145,6 +144,17 @@ void XserverDesktop::refreshScreenLayout()
server->setScreenLayout(::computeScreenLayout(&outputIdMap));
}
+void XserverDesktop::start(rfb::VNCServer* vs)
+{
+ // We already own the server object, and we always keep it in a
+ // ready state
+ assert(vs == server);
+}
+
+void XserverDesktop::stop()
+{
+}
+
void XserverDesktop::queryConnection(network::Socket* sock,
const char* userName)
{
diff --git a/unix/xserver/hw/vnc/XserverDesktop.h b/unix/xserver/hw/vnc/XserverDesktop.h
index 6ea6104f..04666cd1 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.h
+++ b/unix/xserver/hw/vnc/XserverDesktop.h
@@ -45,7 +45,6 @@ namespace rfb {
namespace network { class SocketListener; class Socket; class SocketServer; }
class XserverDesktop : public rfb::SDesktop, public rfb::FullFramePixelBuffer,
- public rfb::VNCServerST::QueryConnectionHandler,
public rfb::Timer::Callback {
public:
@@ -86,6 +85,10 @@ public:
const char* rejectMsg=0);
// rfb::SDesktop callbacks
+ virtual void start(rfb::VNCServer* vs);
+ virtual void stop();
+ virtual void queryConnection(network::Socket* sock,
+ const char* userName);
virtual void pointerEvent(const rfb::Point& pos, int buttonMask);
virtual void keyEvent(rdr::U32 keysym, rdr::U32 keycode, bool down);
virtual void clientCutText(const char* str, int len);
@@ -95,10 +98,6 @@ public:
// rfb::PixelBuffer callbacks
virtual void grabRegion(const rfb::Region& r);
- // rfb::VNCServerST::QueryConnectionHandler callback
- virtual void queryConnection(network::Socket* sock,
- const char* userName);
-
protected:
bool handleListenerEvent(int fd,
std::list<network::SocketListener*>* sockets,