summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index 2d5a4e45..a02db68c 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -1182,8 +1182,10 @@ static void display_load_visible_cursor(struct display *display, XFixesCursorIma
DBG(("%s marking cursor changed\n", DisplayString(display->dpy)));
display->cursor_moved++;
- if (display->cursor != display->invisible_cursor)
+ if (display->cursor != display->invisible_cursor) {
+ display->cursor_visible++;
context_enable_timer(display->ctx);
+ }
}
static void display_cursor_move(struct display *display, int x, int y, int visible)
@@ -1191,7 +1193,7 @@ static void display_cursor_move(struct display *display, int x, int y, int visib
DBG(("%s cursor moved (visible=%d, (%d, %d))\n",
DisplayString(display->dpy), visible, x, y));
display->cursor_moved++;
- display->cursor_visible = visible;
+ display->cursor_visible += visible;
if (visible) {
display->cursor_x = x;
display->cursor_y = y;
@@ -1233,6 +1235,7 @@ static void display_flush_cursor(struct display *display)
display_mark_flush(display);
display->cursor_moved = 0;
+ display->cursor_visible = 0;
}
static void clone_move_cursor(struct clone *c, int x, int y)