Quellcode durchsuchen

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
tags/v0.0.90
Constantin Kaplinsky vor 16 Jahren
Ursprung
Commit
dc873dc993
1 geänderte Dateien mit 6 neuen und 7 gelöschten Zeilen
  1. 6
    7
      unix/x0vncserver/x0vncserver.cxx

+ 6
- 7
unix/x0vncserver/x0vncserver.cxx Datei anzeigen

@@ -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;

Laden…
Abbrechen
Speichern