diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-16 08:34:08 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-16 08:34:08 +0000 |
| commit | 7f6a4f4b6bc5c66898efe2ccb588d0aa1e74c525 (patch) | |
| tree | 761b0fd9a099109594df18ef56220a7ef33ecc8e /input.c | |
| parent | csi: recognize, but mostly ignore, cursor style configuration (diff) | |
csi: implement FocusIn/Out events
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |
