diff options
author | runge <runge> | 2006-03-28 05:43:04 +0000 |
---|---|---|
committer | runge <runge> | 2006-03-28 05:43:04 +0000 |
commit | 5920dc18d75a53690ed8690867f501c51595daf1 (patch) | |
tree | 4f2eb03ac80b27ba03dedaa1a4b32640703b3d02 /x11vnc/cursor.c | |
parent | 10c61b53c275f125432fa20d8348aafcfed2bf93 (diff) | |
download | libtdevnc-5920dc18d75a53690ed8690867f501c51595daf1.tar.gz libtdevnc-5920dc18d75a53690ed8690867f501c51595daf1.zip |
SSL patch for Java viewer. https support for x11vnc.
Diffstat (limited to 'x11vnc/cursor.c')
-rw-r--r-- | x11vnc/cursor.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/x11vnc/cursor.c b/x11vnc/cursor.c index e003ae3..eff8210 100644 --- a/x11vnc/cursor.c +++ b/x11vnc/cursor.c @@ -799,6 +799,7 @@ static void setup_cursors(void) { UNLOCK(screen->cursorMutex); } rfbLog(" done.\n"); + rfbLog("\n"); } void setup_cursors_and_push(void) { @@ -1541,6 +1542,9 @@ void restore_cursor_shape_updates(rfbScreenInfoPtr s) { int changed = 0; ClientData *cd = (ClientData *) cl->clientData; + if (! cd) { + continue; + } if (cd->had_cursor_shape_updates) { rfbLog("restoring enableCursorShapeUpdates for client" " 0x%x\n", cl); @@ -1578,14 +1582,18 @@ void disable_cursor_shape_updates(rfbScreenInfoPtr s) { cd = (ClientData *) cl->clientData; if (cl->enableCursorShapeUpdates) { - cd->had_cursor_shape_updates = 1; + if (cd) { + cd->had_cursor_shape_updates = 1; + } count++; if (debug_pointer) { rfbLog("%s disable HCSU\n", cl->host); } } if (cl->enableCursorPosUpdates) { - cd->had_cursor_pos_updates = 1; + if (cd) { + cd->had_cursor_pos_updates = 1; + } count++; if (debug_pointer) { rfbLog("%s disable HCPU\n", cl->host); |