Commit 47646a20 authored by dscho's avatar dscho

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

parent ff87112b
......@@ -616,13 +616,14 @@ 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);
if(rfbScreen->cursor->cleanup)
rfbFreeCursor(rfbScreen->cursor);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment