diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-08 17:09:35 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-08 17:10:09 +0000 |
commit | abf1a16914d993cc150005879375d4bb17fdccf3 (patch) | |
tree | e7db6d08b772595835ddd7552ca9524622a62e12 /tools/virtual.c | |
parent | b46d0d327140a1b17066e473d6d61798ffb9871a (diff) |
intel-virtual-output: Only track the most recent visibility status of the cursor
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools/virtual.c')
-rw-r--r-- | tools/virtual.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/virtual.c b/tools/virtual.c index beff3d68..5452f456 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -1102,10 +1102,8 @@ 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) { - display->cursor_visible++; + if (display->cursor != display->invisible_cursor) context_enable_timer(display->ctx); - } } static void display_cursor_move(struct display *display, int x, int y, int visible) @@ -1113,7 +1111,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; @@ -1153,7 +1151,6 @@ 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) |