redraw region under old cursor even if the old cursor doesn't have to be freed.

pull/1/head
dscho 20 years ago
parent ff87112b50
commit 47646a200f

@ -616,14 +616,15 @@ void rfbSetCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr c)
LOCK(rfbScreen->cursorMutex);
if(rfbScreen->cursor && rfbScreen->cursor->cleanup) {
if(rfbScreen->cursor) {
iterator=rfbGetClientIterator(rfbScreen);
while((cl=rfbClientIteratorNext(iterator)))
if(!cl->enableCursorShapeUpdates)
rfbRedrawAfterHideCursor(cl);
rfbReleaseClientIterator(iterator);
rfbFreeCursor(rfbScreen->cursor);
if(rfbScreen->cursor->cleanup)
rfbFreeCursor(rfbScreen->cursor);
}
rfbScreen->cursor = c;

Loading…
Cancel
Save