Summary: | XIFloatingSlave pointer not rotated properly | ||
---|---|---|---|
Product: | xorg | Reporter: | Anisse Astier <anisse> |
Component: | Server/Input/Core | Assignee: | Peter Hutterer <peter.hutterer> |
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | major | ||
Priority: | high | CC: | chase.douglas, jeremyhu |
Version: | 7.6 (2010.12) | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | 2011BRB_Reviewed | ||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 40982 |
Description
Anisse Astier
2011-12-08 08:42:49 UTC
It sounds like RandR needs to be hit upside the head by Peter. It should be easy enough to adjust the floating pointer bounds in RandR, so let's try to fix this for 1.12. I've tested the patch on xserver 1.7 (a bit modified, see below), it works as intended. Thanks a lot! Index: xorg-server-1.7.7/dix/events.c =================================================================== --- xorg-server-1.7.7.orig/dix/events.c 2012-01-09 11:26:35.000000000 +0100 +++ xorg-server-1.7.7/dix/events.c 2012-01-09 11:48:17.000000000 +0100 @@ -1355,7 +1355,7 @@ for (pDev = inputInfo.devices; pDev; pDev = pDev->next) { - if (!DevHasCursor(pDev)) + if (!(GetMaster(pDev, MASTER_KEYBOARD) == NULL) && !DevHasCursor(pDev)) continue; /* GrabDevice doesn't have a confineTo field, so we don't need to I can now throw away the fugly code I had written to workaround this bug: void attach_and_float(Display *display, XIDeviceInfo *master, XIDeviceInfo *slave) { XIDetachSlaveInfo detach = { .type = XIDetachSlave, .deviceid = slave->deviceid, }; XIAttachSlaveInfo reattach = { .type = XIAttachSlave, .deviceid = slave->deviceid, .new_master= master->deviceid, }; XIChangeHierarchy(display, (XIAnyHierarchyChangeInfo*)&reattach, 1); XIChangeHierarchy(display, (XIAnyHierarchyChangeInfo*)&detach, 1); } Reopening. This should not be closed until it is actually in a release. Correction, I meant until it is actually on a release branch. commit 35bd77e9d0701daae87d681900d749604fc6471f Author: Peter Hutterer <peter.hutterer@who-t.net> Date: Mon Jan 9 15:04:10 2012 +1000 dix: Update pointer limits for floating devices too (#43635) This is also on server-1.11-branch |
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.