[Bug 75115] interl-virtual-output Pointer gone or misbehave if switch to VC and back to Xorg

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 17 12:39:41 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=75115

--- Comment #2 from Chris Wilson <chris at chris-wilson.co.uk> ---
In both logs, there is an "unknown event 34" (which is the MappingNotify upon
VT switch) and thence mouse updates stop.

Can you please try:

diff --git a/tools/virtual.c b/tools/virtual.c
index cba247b..308f44e 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -2987,7 +2987,8 @@ int main(int argc, char **argv)
                if (reconfigure && context_update(&ctx))
                        display_reset_damage(ctx.display);

-               XPending(ctx.record);
+               while (XPending(ctx.record))
+                       XNextEvent(ctx.record, &e);

                if (ctx.timer_active && read(ctx.timer, &count, sizeof(count))
> 0) {
                        struct clone *clone;

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20140217/b4bb021c/attachment.html>


More information about the intel-gfx-bugs mailing list