Summary: | Mouse position is calculated wrongly with Xdmx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Sybren <sowmestno> | ||||||||
Component: | Server/General | Assignee: | Peter Hutterer <peter.hutterer> | ||||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||||
Severity: | major | ||||||||||
Priority: | medium | CC: | peter.hutterer | ||||||||
Version: | 7.7 (2012.06) | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux (All) | ||||||||||
Whiteboard: | |||||||||||
i915 platform: | i915 features: | ||||||||||
Attachments: |
|
Description
Sybren
2012-07-09 10:27:01 UTC
Created attachment 64140 [details] [review] Patch which apparently solves the problem I looked a little further, and it seems to be a two-fold problem. The scale_from_screen function seems to scale wrongly. If my understanding is correct, the scale_from_screen function should add the screen's offset to get coordinates in the desktop's coordinate system. It should then scale from the desktop coordinates to the device's coordinates. I attached a patch which does this, making use of the desktop dimensions in screenInfo (like the scale_to_desktop function, which I think does more or less the inverse of scale_from_screen). However, the desktop dimensions in screenInfo do not seem to get updated in Xdmx. Therefore, I added update_desktop_dimensions() to dmxcursor.c near the place where screenInfo.screens[] is updated. I don't know if this is the right thing to do, but it seemed to make sense. can you provide a patch for the Xdmx fix please? thanks Created attachment 69808 [details] [review] Patch for Xdmx Since I already supplied a possible patch for both dix and Xdmx, I'm guessing you want one for Xmdx only. Can I get your full name for the patch please? we generally don't merge patches with just the first/last/nickname. ACK to the DMX patch for sure, the other part I need to test first to make sure it doesn't break any other configurations. ping? Created attachment 70673 [details] [review] Patch for Xdmx Sorry for the late response. I've made a new patch with my name. Upstream as. Other patch still in the queue, need more testing because I suspect this may break other servers. commit 6e18599d691036eca6ff082c17727d9ffb926984 Author: Sybren van Elderen <sowmestno@msn.com> Date: Tue Nov 27 19:27:10 2012 +0100 hw/dmx: add update_desktop_dimensions() call commit a191dbfe850ed9c6440346f59cb0078e0e844edc Author: Sybren van Elderen <sowmestno@msn.com> Date: Tue Jan 29 15:43:57 2013 +1000 dix: when scaling from desktop coord, take the total desktop size (#51904) |
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.