[PATCH] xwayland: Check surface is not null when handling enter events

Louis-Francis Ratté-Boulianne lfrb at collabora.com
Tue Jul 30 09:54:35 PDT 2013


---
 hw/xfree86/xwayland/xwayland-input.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/xfree86/xwayland/xwayland-input.c b/hw/xfree86/xwayland/xwayland-input.c
index c550d77..e1858f2 100644
--- a/hw/xfree86/xwayland/xwayland-input.c
+++ b/hw/xfree86/xwayland/xwayland-input.c
@@ -278,6 +278,9 @@ pointer_handle_enter(void *data, struct wl_pointer *pointer,
     int sy = wl_fixed_to_int(sy_w);
     ScreenPtr pScreen = xwl_seat->xwl_screen->screen;
 
+    if (surface == NULL)
+        return;
+
     xwl_seat->xwl_screen->serial = serial;
     xwl_seat->pointer_enter_serial = serial;
 
-- 
1.8.3.1



More information about the wayland-devel mailing list