From b1aeb2bf9be5f8addfb669d8fcc632e51dd2b523 Mon Sep 17 00:00:00 2001 From: Marek Chalupa Date: Thu, 20 Jun 2013 11:56:13 +0200 Subject: [PATCH] fix SIGSEGV when client is suspended --- clients/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index c13d207..7c2f9e5 100644 --- a/clients/window.c +++ b/clients/window.c @@ -2803,7 +2803,8 @@ pointer_handle_motion(void *data, struct wl_pointer *pointer, if (!(input->grab && input->grab_button)) { widget = window_find_widget(window, sx, sy); - input_set_focus_widget(input, widget, sx, sy); + if (widget) + input_set_focus_widget(input, widget, sx, sy); } if (input->grab) -- 1.8.2.1