diff --git a/server/queue.c b/server/queue.c index 8cee4ab41f..3d6dbf9e55 100644 --- a/server/queue.c +++ b/server/queue.c @@ -1155,7 +1155,9 @@ static user_handle_t find_hardware_message_window( struct thread_input *input, s if (!input || !(win = input->capture)) { if (!(win = msg->win) || !is_window_visible( win )) - win = window_from_point( input->desktop, msg->x, msg->y ); + { + if (input) win = window_from_point( input->desktop, msg->x, msg->y ); + } } } return win;