From 0c0c8c9efb0f6a17822f290c6c9960e3e45ba87f Mon Sep 17 00:00:00 2001 From: Kevin Lamonte Date: Sun, 1 May 2016 15:04:55 -0400 Subject: [PATCH] Fix blinking cursor for clients that call move() more frequently than cursorBlinkRate --- x11/pdcdisp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x11/pdcdisp.c b/x11/pdcdisp.c index 05024d40..0176e97b 100644 --- a/x11/pdcdisp.c +++ b/x11/pdcdisp.c @@ -80,6 +80,13 @@ int PDC_display_cursor(int oldrow, int oldcol, int newrow, int newcol, } else { + if ((oldrow == newrow) && (oldcol == newcol)) + { + /* Do not send a message because it will cause the blink state + to reset. */ + return OK; + } + idx = CURSES_CURSOR; memcpy(buf, &idx, sizeof(int));