term: group 'flash' state together in a struct

This commit is contained in:
Daniel Eklöf 2019-07-22 19:15:56 +02:00
parent 61409d40e2
commit 196f9d67c2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 18 additions and 14 deletions

View file

@ -243,8 +243,10 @@ struct terminal {
char *window_title;
tll(char *) window_title_stack;
bool flash_active;
int flash_timer_fd;
struct {
bool active;
int fd;
} flash;
bool is_blinking;
enum { BLINK_ON, BLINK_OFF } blink_mode;