mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:41:17 -07:00
May solve #60229, thanks to Christian Krause.
svn path=/trunk/kdenetwork/krfb/; revision=304986
This commit is contained in:
@@ -248,8 +248,8 @@ rfbSendSoftCursor(rfbClientPtr cl, Bool cursorWasChanged)
|
||||
/* Send buffer contents if needed. */
|
||||
|
||||
if ( cl->ublen + sizeof(rfbSoftCursorMove) +
|
||||
((scNindex >= 0) ?
|
||||
(sizeof(rfbSoftCursorSetImage) + imgLen) : 0)) {
|
||||
((scNindex >= 0 && cursorWasChanged) ?
|
||||
(sizeof(rfbSoftCursorSetImage) + imgLen) : 0) > UPDATE_BUF_SIZE) {
|
||||
|
||||
if (!rfbSendUpdateBuf(cl))
|
||||
return FALSE;
|
||||
@@ -257,7 +257,7 @@ rfbSendSoftCursor(rfbClientPtr cl, Bool cursorWasChanged)
|
||||
|
||||
saved_ublen = cl->ublen;
|
||||
|
||||
if (scNindex >= 0) {
|
||||
if (scNindex >= 0 && cursorWasChanged) {
|
||||
rect.encoding = Swap32IfLE(rfbEncodingSoftCursor);
|
||||
if (pCursor) {
|
||||
rect.r.x = Swap16IfLE(pCursor->xhot);
|
||||
|
||||
Reference in New Issue
Block a user