Bug 71439

Summary: intel-virtual-output resets root window cursor
Product: xorg Reporter: Jethro Beekman <freedesktop-bugs>
Component: Driver/intelAssignee: Chris Wilson <chris>
Status: RESOLVED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Jethro Beekman 2013-11-09 22:10:29 UTC
When I activate intel-virtual-output, the cursor becomes invisible when showing the context menu (right-clicking) in certain GNOME/GTK applications. See https://bugs.kde.org/show_bug.cgi?id=327118 and https://bugzilla.gnome.org/show_bug.cgi?id=711582 . This is caused by intel-virtual-output resetting the source display root window cursor through display_flush_cursor(). I fixed this locally by changing "for(...) display_flush(...)" on line 2720 to start at i=1. This fixes this issue, but I'm not sure about the overall design of this tool and whether this fix will cause other issues.
Comment 1 Chris Wilson 2013-11-10 10:36:41 UTC
commit 7b0771180dc9bb7276a473db5663f41b5929199b
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Nov 10 10:34:06 2013 +0000

    intel-virtual-output: Do not hide the cursor on the local/source display
    
    Whilst we want to take over and hide the cursor on the remote displays,
    on the source we need to not interfere with the host.
    
    Reported-by: Jethro Beekman <freedesktop-bugs@jbeekman.nl>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71439
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

If it still fails, please apply

diff --git a/tools/virtual.c b/tools/virtual.c
index dfb9a81..3deffa4 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -66,7 +66,7 @@
 #include <fcntl.h>
 #include <assert.h>
 
-#if 0
+#if 1
 #define DBG(x) printf x
 #else
 #define DBG(x)

and attach the output of intel-virtual-output -f
Comment 2 Jethro Beekman 2013-11-11 06:02:28 UTC
Works. This also fixes the cursor jumping around when starting i-v-p. Thanks a lot for the quick response and fix!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.