diff options
author | nicm <nicm> | 2014-10-21 22:22:04 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-10-21 22:22:04 +0000 |
commit | a02c2e55c0ee0a6f2d3a897c06a396794b765a6c (patch) | |
tree | 3ca0f7fa5f46024a10c3f2f1c5a92448bc2f0828 /cmd-select-pane.c | |
parent | 85671a5bed961b7a542ffce853749fb61b0558ca (diff) |
Only redraw pane when it has actually changed.
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r-- | cmd-select-pane.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-select-pane.c b/cmd-select-pane.c index 99594ae9..5810eeab 100644 --- a/cmd-select-pane.c +++ b/cmd-select-pane.c @@ -99,8 +99,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq) wp->flags &= ~PANE_INPUTOFF; else if (args_has(self->args, 'd')) wp->flags |= PANE_INPUTOFF; - else { - window_set_active_pane(wl->window, wp); + else if (window_set_active_pane(wl->window, wp)) { server_status_window(wl->window); server_redraw_window_borders(wl->window); } |