aboutsummaryrefslogtreecommitdiff
path: root/termo.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-09-14 15:38:49 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-09-14 17:55:41 +0200
commit0bfb13655c02c75b0e1cc864a81996e58cd5c7b4 (patch)
treebce0c60337beda47d632511f0f4e0afd9bb7eb17 /termo.h
parent78c0cd443d7e302fac6448db9d776c02a185d084 (diff)
downloadtermo-0bfb13655c02c75b0e1cc864a81996e58cd5c7b4.tar.gz
termo-0bfb13655c02c75b0e1cc864a81996e58cd5c7b4.tar.xz
termo-0bfb13655c02c75b0e1cc864a81996e58cd5c7b4.zip
Implement de/focus event parsing
So far there is no way to set it up, I'm not sure how to go about it.
Diffstat (limited to 'termo.h')
-rw-r--r--termo.h2
1 files changed, 2 insertions, 0 deletions
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()