aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2021-11-19 11:08:39 +0100
committerN-R-K <79544946+N-R-K@users.noreply.github.com>2021-11-19 12:02:50 +0100
commit43fcd2e02e113a55f673f266ad28b53858500022 (patch)
treeb831fa86b7d97a975865bc77465c47496ab614a4 /main.c
parent2df33208d76159ffacffce3c8a8edc3a5ad7ea7b (diff)
downloadnsxiv-43fcd2e02e113a55f673f266ad28b53858500022.tar.zst
set env var NSXIV_USING_NULL for key-handler and update docs
Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 5bab026..69a1f63 100644
--- a/main.c
+++ b/main.c
@@ -549,6 +549,7 @@ void run_key_handler(const char *key, unsigned int mask)
mask & ControlMask ? "C-" : "",
mask & Mod1Mask ? "M-" : "",
mask & ShiftMask ? "S-" : "", key);
+ setenv("NSXIV_USING_NULL", options->using_null ? "1" : "0", 1);
if ((pid = fork()) == 0) {
close(pfd[1]);