diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-22 17:15:56 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-22 17:15:56 +0000 |
| commit | 196f9d67c2049c50474c78ddeb59ebe72ac070ab (patch) | |
| tree | c483594546dc56cc732b79026b67a46a83322b1e /osc.c | |
| parent | flash: 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |
