From 7f6a4f4b6bc5c66898efe2ccb588d0aa1e74c525 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 16 Jul 2019 10:34:08 +0200 Subject: csi: implement FocusIn/Out events --- input.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'input.c') diff --git a/input.c b/input.c index 5bb93132..a50f76cf 100644 --- a/input.c +++ b/input.c @@ -65,6 +65,7 @@ keyboard_enter(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, wl_array_for_each(key, keys) xkb_state_update_key(xkb_state, *key, 1); #endif + term_focus_in((struct terminal *)data); } static void @@ -72,6 +73,7 @@ keyboard_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_surface *surface) { struct terminal *term = data; + term_focus_out(term); mtx_lock(&term->kbd.repeat.mutex); if (term->kbd.repeat.cmd != REPEAT_EXIT) { -- cgit v1.3