From b37399304f9fa310d0790dee8a8325d79cc9af39 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 10 Feb 2009 00:18:06 +0000 Subject: Don't redraw status line unless it has actually changed. Stops extraneous updates between clock/#() changes and doesn't require manual status-interval 0 when no updates are occuring. --- tmux.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index 86ac1da6..23bbbac6 100644 --- a/tmux.h +++ b/tmux.h @@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.262 2009-02-09 18:08:01 nicm Exp $ */ +/* $Id: tmux.h,v 1.263 2009-02-10 00:18:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1296,9 +1296,9 @@ void server_lock(void); int server_unlock(const char *); /* status.c */ -void status_redraw(struct client *); -void status_message_redraw(struct client *); -void status_prompt_redraw(struct client *); +int status_redraw(struct client *); +int status_message_redraw(struct client *); +int status_prompt_redraw(struct client *); void status_prompt_key(struct client *, int); /* resize.c */ @@ -1326,6 +1326,7 @@ int attributes_fromstring(const char *); extern const struct grid_cell grid_default_cell; struct grid_data *grid_create(u_int, u_int, u_int); void grid_destroy(struct grid_data *); +int grid_compare(struct grid_data *, struct grid_data *); void grid_reduce_line(struct grid_data *, u_int, u_int); void grid_expand_line(struct grid_data *, u_int, u_int); void grid_scroll_line(struct grid_data *); -- cgit