diff options
author | Adam Jackson <ajax@redhat.com> | 2010-11-15 14:29:14 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-03-14 13:35:51 -0400 |
commit | 56c90e29f04727c903bd0f084d23bf44eb1a0a11 (patch) | |
tree | 1162b4ee3cee6e5267d66cdaf0f23a596b05ce7f /randr/randr.c | |
parent | 810fbfa44626bff9f443ab17c0ad27ff7ae121d7 (diff) |
randr: Add RRConstrainCursorHarder
Confine cursor motion to within the bounds of a single CRTC, iff all the
CRTCs within a ScreenRec are reachable from each other. If not you get
the same "cursor floats within the bounding rect" behaviour you get now.
v3:
- Incorporate review feedback from Christopher James Halse Rogers
v4:
- Add mode field.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'randr/randr.c')
-rw-r--r-- | randr/randr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/randr/randr.c b/randr/randr.c index 607770520..d33712928 100644 --- a/randr/randr.c +++ b/randr/randr.c @@ -270,6 +270,8 @@ Bool RRScreenInit(ScreenPtr pScreen) wrap (pScrPriv, pScreen, CloseScreen, RRCloseScreen); + pScreen->ConstrainCursorHarder = RRConstrainCursorHarder; + pScrPriv->numOutputs = 0; pScrPriv->outputs = NULL; pScrPriv->numCrtcs = 0; |