diff options
author | Adam Jackson <ajax@redhat.com> | 2011-02-15 14:55:58 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-02-16 14:07:57 -0500 |
commit | 1f63f900b2e9d8d69de94c5faa93cc47a366441e (patch) | |
tree | 9ee3876af2a22fb254544b120289af4b7c570e8d | |
parent | 4d48d82b6dc5df6ec2e9e7c7842ddc3805b38d57 (diff) |
barriers: forbid point barrierswhot-barriers
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | xfixes/cursor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xfixes/cursor.c b/xfixes/cursor.c index c6f3281a9..0072d5589 100644 --- a/xfixes/cursor.c +++ b/xfixes/cursor.c @@ -1302,6 +1302,10 @@ ProcXFixesCreatePointerBarrier (ClientPtr client) if (!barrier_is_horizontal(&b) && !barrier_is_vertical(&b)) return BadValue; + /* no 0-sized barriers */ + if (barrier_is_horizontal(&b) && barrier_is_vertical(&b)) + return BadValue; + if (!(barrier = CreatePointerBarrierClient(pWin->drawable.pScreen, client, stuff))) return BadAlloc; |