aboutsummaryrefslogtreecommitdiff
path: root/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard.c')
-rw-r--r--keyboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboard.c b/keyboard.c
index 30a4859..bdfda16 100644
--- a/keyboard.c
+++ b/keyboard.c
@@ -69,6 +69,10 @@ void wl_keyboard_enter(void *data, struct wl_keyboard *wl_keyboard,
void wl_keyboard_leave(void *data, struct wl_keyboard *wl_keyboard,
uint32_t serial, struct wl_surface *surface) {
+ client_state *state = data;
+
+ // close on focus lost
+ state->running = false;
}
void wl_keyboard_key(void *data, struct wl_keyboard *wl_keyboard,