diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-10-23 17:41:20 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-10-23 17:41:20 +0000 |
commit | 9ad23472581afc719c65f1f029a11906db5fc94f (patch) | |
tree | 8dd9f6a7195bdcf0f70787c165e71c0826e4cb6b | |
parent | dbefea339fae0ed62d644f8e91de3f2142ff2424 (diff) | |
download | rtmux-9ad23472581afc719c65f1f029a11906db5fc94f.tar.gz rtmux-9ad23472581afc719c65f1f029a11906db5fc94f.tar.bz2 rtmux-9ad23472581afc719c65f1f029a11906db5fc94f.zip |
Sync OpenBSD patchset 437:
Only redraw the pane when changing mode, not the entire window.
-rw-r--r-- | window.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.116 2009-10-23 17:09:21 tcunha Exp $ */ +/* $Id: window.c,v 1.117 2009-10-23 17:41:20 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -617,7 +617,7 @@ window_pane_set_mode(struct window_pane *wp, const struct window_mode *mode) if ((s = wp->mode->init(wp)) != NULL) wp->screen = s; - server_redraw_window(wp->window); + wp->flags |= PANE_REDRAW; return (0); } @@ -631,7 +631,7 @@ window_pane_reset_mode(struct window_pane *wp) wp->mode = NULL; wp->screen = &wp->base; - server_redraw_window(wp->window); + wp->flags |= PANE_REDRAW; } void |