aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-16 08:34:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-16 08:34:08 +0000
commit7f6a4f4b6bc5c66898efe2ccb588d0aa1e74c525 (patch)
tree761b0fd9a099109594df18ef56220a7ef33ecc8e /input.c
parentcsi: recognize, but mostly ignore, cursor style configuration (diff)
csi: implement FocusIn/Out events
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 2 insertions, 0 deletions
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) {