From dc873dc9937c34ec1b20d1812f3f447673acd432 Mon Sep 17 00:00:00 2001 From: Constantin Kaplinsky Date: Wed, 4 Jun 2008 09:46:57 +0000 Subject: [PATCH] Minor cleanup, no code changes: updated a comment and moved XDesktop::poll() declaration. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2577 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/x0vncserver/x0vncserver.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/unix/x0vncserver/x0vncserver.cxx b/unix/x0vncserver/x0vncserver.cxx index 2fe599e8..637af28c 100644 --- a/unix/x0vncserver/x0vncserver.cxx +++ b/unix/x0vncserver/x0vncserver.cxx @@ -163,6 +163,11 @@ public: stop(); } + inline void poll() { + if (pb) + pb->poll(server); + } + // -=- SDesktop interface virtual void start(VNCServer* vs) { @@ -177,8 +182,7 @@ public: // Create an ImageFactory instance for producing Image objects. ImageFactory factory((bool)useShm, (bool)useOverlay); - // Provide pixel buffer to the server object. - // FIXME: Pass coordinates in a structure? + // Create pixel buffer and provide it to the server object. pb = new XPixelBuffer(dpy, factory, geometry->getRect(), this); vlog.info("Allocated %s", pb->getImage()->classDesc()); @@ -199,11 +203,6 @@ public: return running; } - inline void poll() { - if (pb) - pb->poll(server); - } - virtual void pointerEvent(const Point& pos, int buttonMask) { #ifdef HAVE_XTEST if (!haveXtest) return; -- 2.39.5