From b7c00a437643480a9573f97c91d6fca7acce895f Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 23 Jun 2011 23:30:30 +0200 Subject: [PATCH] Send keyboard_focus only to client surfaces --- compositor/compositor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compositor/compositor.c b/compositor/compositor.c index 52599769..4d5b652c 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c @@ -1471,8 +1471,9 @@ notify_keyboard_focus(struct wl_input_device *device, update_modifier_state(wd, *k, 1); } - wl_input_device_set_keyboard_focus(&wd->input_device, - &es->surface, time); + if (es->surface.client) + wl_input_device_set_keyboard_focus(&wd->input_device, + &es->surface, time); } else { end = device->keys.data + device->keys.size; for (k = device->keys.data; k < end; k++)