diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-02 23:52:52 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-02 23:52:52 +0100 |
commit | 6f090044d1de4160777963910df3586bdf0186dc (patch) | |
tree | d385c821413b01e65100a1892fb4740cf640326e /tools/virtual.c | |
parent | 91aca61c83f0905d1f6446dba56c5f67d91efb6f (diff) |
intel-virtual-output: Remember to mark the timer as active when moving the mouse
Otherwise we throttle mouse updates to the next display update...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools/virtual.c')
-rw-r--r-- | tools/virtual.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/virtual.c b/tools/virtual.c index d26a7685..43146dc3 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -1061,6 +1061,8 @@ static void display_load_visible_cursor(struct display *display, XFixesCursorIma DBG(("%s marking cursor changed\n", DisplayString(display->dpy))); display->cursor_moved++; display->cursor_visible += display->cursor != display->invisible_cursor; + + context_enable_timer(display->ctx); } static void display_cursor_move(struct display *display, int x, int y, int visible) @@ -1073,6 +1075,8 @@ static void display_cursor_move(struct display *display, int x, int y, int visib display->cursor_x = x; display->cursor_y = y; } + + context_enable_timer(display->ctx); } static void display_flush_cursor(struct display *display) |