From 8fe8d24902a423cb34e2336321a1b5854793b132 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 22 Jun 2012 16:57:21 -0400 Subject: [PATCH] compositor: Send ping to keyboard focus surface for key press We were sending to the pointer focus surface. --- src/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index eb795a2..a4ef26b 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1849,7 +1849,7 @@ notify_key(struct wl_seat *seat, uint32_t time, uint32_t key, struct weston_seat *ws = (struct weston_seat *) seat; struct weston_compositor *compositor = ws->compositor; struct weston_surface *focus = - (struct weston_surface *) seat->pointer->focus; + (struct weston_surface *) seat->keyboard->focus; struct wl_keyboard_grab *grab = seat->keyboard->grab; uint32_t serial = wl_display_next_serial(compositor->wl_display); uint32_t *k, *end; -- 2.7.4