Bug 518803

Summary: Mouse cursor moving between screens not working (XTestFakeMotionEvent ignores screen argument)
Product: [Fedora] Fedora Reporter: Ronald Wahl <rwahl>
Component: xorg-x11-serverAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-08-28 23:07:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Small tool to move mouse cursor between screens on dual-head setup. none

Description Ronald Wahl 2009-08-23 02:43:09 UTC
Created attachment 358335 [details]
Small tool to move mouse cursor between screens on dual-head setup.

Description of problem:

On a dual screen setup (xinerama disabled) it is not possible to move the mouse cursor between screen using XTestFakeRelativeMotionEvent(). The screen argument seems to be ignored. It was working in Fedora 10 and earlier.

Version-Release number of selected component (if applicable):

xorg-x11-server-Xorg-1.6.1.901-1.fc11
xorg-x11-server-Xorg-1.6.3-4.fc11

How reproducible:

Always

Steps to Reproduce:
1. Setup dual head without xinerama
2. Compile attached dualmouse.c:

gcc -o dualmouse ~rpmbuild/SOURCES/dualmouse.c -lX11 -lXtst

3. Call ./dualmouse. This should warp the mouse cursor to the second screen and vice versa if doing the same on the other screen.
  
Actual results:

Mouse cursor remains on the same screen as the command was called.

Expected results:

Mouse cursor should be moved to the second screen.

Additional info:

Comment 1 Ronald Wahl 2009-08-23 02:45:50 UTC
Small correction: XTestFakeMotionEvent was meant (and not XTestFakeRelativeMotionEvent)

Comment 2 Ronald Wahl 2009-08-28 23:07:48 UTC
Solution found. See

http://digamma.cs.unm.edu/trac.dmohr/wiki/DualscreenMouseUtils

Obviously XWarpCursor has to be used since xorg 7.4.