aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-22 17:15:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-22 17:15:56 +0000
commit196f9d67c2049c50474c78ddeb59ebe72ac070ab (patch)
treec483594546dc56cc732b79026b67a46a83322b1e /osc.c
parentflash: convert our own 'flash' from a CSI to an OSC (diff)
term: group 'flash' state together in a struct
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/osc.c b/osc.c
index 2845ab96..cfecf2ee 100644
--- a/osc.c
+++ b/osc.c
@@ -213,10 +213,10 @@ osc_flash(struct terminal *term)
.it_value = {.tv_sec = 0, .tv_nsec = duration_ms * 1000000},
};
- if (timerfd_settime(term->flash_timer_fd, 0, &alarm, NULL) < 0)
+ if (timerfd_settime(term->flash.fd, 0, &alarm, NULL) < 0)
LOG_ERRNO("failed to arm flash timer");
else {
- term->flash_active = true;
+ term->flash.active = true;
}
}