Only redraw pane when it has actually changed.

This commit is contained in:
nicm
2014-10-21 22:22:04 +00:00
parent 85671a5bed
commit a02c2e55c0
3 changed files with 6 additions and 6 deletions

View File

@ -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);
}