diff options
author | Constantin Kaplinsky <const@tightvnc.com> | 2008-06-04 09:46:57 +0000 |
---|---|---|
committer | Constantin Kaplinsky <const@tightvnc.com> | 2008-06-04 09:46:57 +0000 |
commit | dc873dc9937c34ec1b20d1812f3f447673acd432 (patch) | |
tree | d3c5ee40de70882f9a4d56633e97a9b1d829cb2a /unix/x0vncserver | |
parent | 303433aae8f929bda55edcea911382e236973ef1 (diff) | |
download | tigervnc-dc873dc9937c34ec1b20d1812f3f447673acd432.tar.gz tigervnc-dc873dc9937c34ec1b20d1812f3f447673acd432.zip |
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
Diffstat (limited to 'unix/x0vncserver')
-rw-r--r-- | unix/x0vncserver/x0vncserver.cxx | 13 |
1 files 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; |