diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-06-21 01:27:46 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-06-21 01:27:46 +0000 |
commit | e63f0546a166c442464c7d8500a74b38c036432a (patch) | |
tree | d087ac452070d41659c6e03dcb6d2f0e04079885 /tmux.h | |
parent | 447a07e9f83297bf0ad5f973e67eb32488fc1b8d (diff) | |
download | rtmux-e63f0546a166c442464c7d8500a74b38c036432a.tar.gz rtmux-e63f0546a166c442464c7d8500a74b38c036432a.tar.bz2 rtmux-e63f0546a166c442464c7d8500a74b38c036432a.zip |
Having a list of winlinks->alerts for each session is stupid, just store
the alert flags directly in the winlink itself.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 24 |
1 files changed, 8 insertions, 16 deletions
@@ -843,8 +843,7 @@ struct window { #define WINDOW_BELL 0x1 #define WINDOW_HIDDEN 0x2 #define WINDOW_ACTIVITY 0x4 -#define WINDOW_CONTENT 0x8 -#define WINDOW_REDRAW 0x10 +#define WINDOW_REDRAW 0x8 struct options options; @@ -861,6 +860,12 @@ struct winlink { struct grid_cell status_cell; char *status_text; + int flags; +#define WINLINK_BELL 0x1 +#define WINLINK_ACTIVITY 0x2 +#define WINLINK_CONTENT 0x4 +#define WINLINK_ALERTFLAGS (WINLINK_BELL|WINLINK_ACTIVITY|WINLINK_CONTENT) + RB_ENTRY(winlink) entry; TAILQ_ENTRY(winlink) sentry; }; @@ -912,13 +917,6 @@ struct environ_entry { RB_HEAD(environ, environ_entry); /* Client session. */ -struct session_alert { - struct winlink *wl; - int type; - - SLIST_ENTRY(session_alert) entry; -}; - struct session_group { TAILQ_HEAD(, session) sessions; @@ -943,8 +941,6 @@ struct session { struct paste_stack buffers; - SLIST_HEAD(, session_alert) alerts; - #define SESSION_UNATTACHED 0x1 /* not attached to any clients */ #define SESSION_DEAD 0x2 int flags; @@ -1911,10 +1907,6 @@ void clear_signals(void); extern struct sessions sessions; extern struct sessions dead_sessions; extern struct session_groups session_groups; -void session_alert_add(struct session *, struct window *, int); -void session_alert_cancel(struct session *, struct winlink *); -int session_alert_has(struct session *, struct winlink *, int); -int session_alert_has_window(struct session *, struct window *, int); struct session *session_find(const char *); struct session *session_create(const char *, const char *, const char *, struct environ *, struct termios *, int, u_int, u_int, @@ -1926,7 +1918,7 @@ struct winlink *session_new(struct session *, struct winlink *session_attach( struct session *, struct window *, int, char **); int session_detach(struct session *, struct winlink *); -int session_has(struct session *, struct window *); +struct winlink* session_has(struct session *, struct window *); int session_next(struct session *, int); int session_previous(struct session *, int); int session_select(struct session *, int); |