diff options
author | Thomas Adam <thomas@xteddy.org> | 2014-10-29 12:50:05 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2014-10-29 12:51:21 +0000 |
commit | 35ffd093d724053046ae49984af0beb0530e5560 (patch) | |
tree | d5b89a213621dc56b852fc7eb8a1daba12046830 /window.c | |
parent | 201036ad80f2e51f7238db2adf05914a4a4f5819 (diff) | |
parent | 10a9440055ccdda5788965bcb048207eab2a0548 (diff) | |
download | rtmux-35ffd093d724053046ae49984af0beb0530e5560.tar.gz rtmux-35ffd093d724053046ae49984af0beb0530e5560.tar.bz2 rtmux-35ffd093d724053046ae49984af0beb0530e5560.zip |
Merge branch 'obsd-master'
Conflicts:
Makefile
cmd-link-window.c
cmd-unlink-window.c
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -385,11 +385,11 @@ window_resize(struct window *w, u_int sx, u_int sy) w->sy = sy; } -void +int window_set_active_pane(struct window *w, struct window_pane *wp) { if (wp == w->active) - return; + return (0); w->last = w->active; w->active = wp; while (!window_pane_visible(w->active)) { @@ -397,9 +397,10 @@ window_set_active_pane(struct window *w, struct window_pane *wp) if (w->active == NULL) w->active = TAILQ_LAST(&w->panes, window_panes); if (w->active == wp) - return; + return (1); } w->active->active_point = next_active_point++; + return (1); } struct window_pane * |