From 0bfb13655c02c75b0e1cc864a81996e58cd5c7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 14 Sep 2020 15:38:49 +0200 Subject: Implement de/focus event parsing So far there is no way to set it up, I'm not sure how to go about it. --- termo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'termo.h') diff --git a/termo.h b/termo.h index 32eda4f..b435e9f 100644 --- a/termo.h +++ b/termo.h @@ -97,6 +97,7 @@ enum termo_type TERMO_TYPE_MOUSE, TERMO_TYPE_POSITION, TERMO_TYPE_MODEREPORT, + TERMO_TYPE_FOCUS, // add other recognised types here TERMO_TYPE_UNKNOWN_CSI = -1 @@ -159,6 +160,7 @@ struct termo_key uint32_t codepoint; // TERMO_TYPE_KEY int number; // TERMO_TYPE_FUNCTION termo_sym_t sym; // TERMO_TYPE_KEYSYM + int focused; // TERMO_TYPE_FOCUS // TERMO_TYPE_MODEREPORT // opaque, see termo_interpret_modereport() -- cgit v1.2.3