Bug 10013

Summary: xnest: Resets mouse acceleration and speed
Product: xorg Reporter: Brice Goglin <brice.goglin>
Component: Server/DDX/XnestAssignee: Peter Hutterer <peter.hutterer>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.2 (2007.02)   
Hardware: Other   
OS: All   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=325181
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 23613    
Attachments:
Description Flags
Program that I used to display the mouse acceleration and speed config.
none
0001-Xnest-set-the-default-pointer-accel-to-the-host-s-va.patch none

Description Brice Goglin 2007-02-18 02:49:44 UTC
This bug has been reported to the Debian BTS by Sven Arvidsson <sa@whiz.se> 18 months ago and is still valid for Xorg 7.2.

When I change the mouse acceleration and speed config with xset and then I run Xnest, the config is reset to default. For instance:
  $ xset m 5
  $ ./xget
  acceleration: 5/1       threshold: 4
  $ Xnest :1
     <close the window>
  $ ./xget
  acceleration: 2/1       threshold: 4

"xget" is a simple program that Julien Cristau kindly wrote for this purpose. I'll attach its source code below.

I guess the problem is caused by xnestPointerProc() in DEVICE_INIT calls InitPointerDeviceStruct which ends up calling xnestChangePointerControl() with default values.

Note that Xephyr does not seem to have this problem. Since Xephyr seems to be recommended instead of Xnest, I am not sure this bug with ever be fixed. But at least it will be known.

Thanks.
Comment 1 Brice Goglin 2007-02-18 02:50:33 UTC
Created attachment 8769 [details]
Program that I used to display the mouse acceleration and speed config.
Comment 2 Daniel Stone 2007-02-27 01:36:29 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 3 Peter Hutterer 2009-09-07 19:53:04 UTC
still valid for git master
Comment 4 Daniel Stone 2009-09-07 21:47:27 UTC
could be worth finally putting xnest to bed -- now that xephyr has xv and dri passthrough, is there really much point to xnest?
Comment 5 Peter Hutterer 2009-09-07 22:58:15 UTC
Created attachment 29326 [details] [review]
0001-Xnest-set-the-default-pointer-accel-to-the-host-s-va.patch

If we put it to rest that's fine but not for 1.7. Too late in the cycle, IMO.
Anyway, this patch fixes the issue.
Comment 6 Peter Hutterer 2009-09-08 21:10:33 UTC
Fix pushed as ae812bb79668e59cda1f851fb1fabe9db9ea705f.

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.