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/randrstr.h | |
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/randrstr.h')
-rw-r--r-- | randr/randrstr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/randr/randrstr.h b/randr/randrstr.h index 7ea608003..d8dd37d96 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -297,6 +297,7 @@ typedef struct _rrScrPriv { int rate; int size; #endif + Bool discontiguous; } rrScrPrivRec, *rrScrPrivPtr; extern _X_EXPORT DevPrivateKeyRec rrPrivKeyRec; @@ -700,6 +701,9 @@ ProcRRGetPanning (ClientPtr client); int ProcRRSetPanning (ClientPtr client); +void +RRConstrainCursorHarder (DeviceIntPtr, ScreenPtr, int, int *, int *); + /* rrdispatch.c */ extern _X_EXPORT Bool RRClientKnowsRates (ClientPtr pClient); |