From 81385487e6d8d987d32d851a9ee8cf5f6b5ba05f Mon Sep 17 00:00:00 2001 From: Lukas Hrazky Date: Sat, 8 Sep 2012 16:32:28 +0200 Subject: [PATCH] fix pointer clipping --- src/compositor.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 2b963f5..a0a12a2 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -2162,7 +2162,7 @@ clip_pointer_motion(struct weston_seat *seat, wl_fixed_t *fx, wl_fixed_t *fy) prev = output; } - if (!valid) { + if (!valid && prev) { if (x < prev->x) *fx = wl_fixed_from_int(prev->x); else if (x >= prev->x + prev->width) -- 1.7.9.rc2