Bug 10013 - xnest: Resets mouse acceleration and speed
Summary: xnest: Resets mouse acceleration and speed
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xnest (show other bugs)
Version: 7.2 (2007.02)
Hardware: Other All
: medium normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks: xserver-1.7
  Show dependency treegraph
 
Reported: 2007-02-18 02:49 UTC by Brice Goglin
Modified: 2009-09-08 21:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Program that I used to display the mouse acceleration and speed config. (385 bytes, text/x-c)
2007-02-18 02:50 UTC, Brice Goglin
no flags Details
0001-Xnest-set-the-default-pointer-accel-to-the-host-s-va.patch (1.42 KB, patch)
2009-09-07 22:58 UTC, Peter Hutterer
no flags Details | Splinter Review

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.