summaryrefslogtreecommitdiffstats
path: root/vncterm
diff options
context:
space:
mode:
Diffstat (limited to 'vncterm')
-rw-r--r--vncterm/VNConsole.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/vncterm/VNConsole.c b/vncterm/VNConsole.c
index ac8e260..651546a 100644
--- a/vncterm/VNConsole.c
+++ b/vncterm/VNConsole.c
@@ -50,8 +50,7 @@ void vcDrawOrHideCursor(vncConsolePtr c)
void vcDrawCursor(vncConsolePtr c)
{
- rfbDrawCursor(c->screen);
- if(c->cursorActive && !c->cursorIsDrawn && c->y<c->height && c->x<c->width) {
+ if(c->cursorActive && c->y<c->height && c->x<c->width) {
/* rfbLog("DrawCursor: %d,%d\n",c->x,c->y); */
vcDrawOrHideCursor(c);
}
@@ -59,13 +58,9 @@ void vcDrawCursor(vncConsolePtr c)
void vcHideCursor(vncConsolePtr c)
{
- rfbUndrawCursor(c->screen);
if(c->currentlyMarking)
vcUnmark(c);
- if(c->cursorIsDrawn) {
- /* rfbLog("HideCursor: %d,%d\n",c->x,c->y); */
- vcDrawOrHideCursor(c);
- }
+ vcDrawOrHideCursor(c);
}
void vcMakeSureCursorIsDrawn(rfbClientPtr cl)
@@ -394,8 +389,6 @@ void vcPtrAddEventProc(int buttonMask,int x,int y,rfbClientPtr cl)
{
vncConsolePtr c=(vncConsolePtr)cl->screen->screenData;
- rfbUndrawCursor(c->screen);
-
if(c->wasRightButtonDown) {
if((buttonMask&4)==0) {
if(c->selection) {