version 1.4, 2009/07/14 07:23:36 |
version 1.5, 2009/07/19 13:21:40 |
|
|
struct winlink *wl; |
struct winlink *wl; |
struct window *w; |
struct window *w; |
struct window_pane *tmp_wp, *src_wp, *dst_wp; |
struct window_pane *tmp_wp, *src_wp, *dst_wp; |
|
struct layout_cell *lc; |
u_int xx, yy; |
u_int xx, yy; |
|
|
if (data == NULL) |
if (data == NULL) |
|
|
else |
else |
TAILQ_INSERT_AFTER(&w->panes, tmp_wp, src_wp, entry); |
TAILQ_INSERT_AFTER(&w->panes, tmp_wp, src_wp, entry); |
|
|
|
lc = src_wp->layout_cell; |
xx = src_wp->xoff; |
xx = src_wp->xoff; |
yy = src_wp->yoff; |
yy = src_wp->yoff; |
src_wp->xoff = dst_wp->xoff; |
src_wp->layout_cell = dst_wp->layout_cell; |
src_wp->yoff = dst_wp->yoff; |
if (src_wp->layout_cell != NULL) |
dst_wp->xoff = xx; |
src_wp->layout_cell->wp = src_wp; |
dst_wp->yoff = yy; |
dst_wp->layout_cell = lc; |
|
if (dst_wp->layout_cell != NULL) |
|
dst_wp->layout_cell->wp = dst_wp; |
|
|
xx = src_wp->sx; |
xx = src_wp->sx; |
yy = src_wp->sy; |
yy = src_wp->sy; |
|
|
if (!window_pane_visible(tmp_wp)) |
if (!window_pane_visible(tmp_wp)) |
tmp_wp = src_wp; |
tmp_wp = src_wp; |
window_set_active_pane(w, tmp_wp); |
window_set_active_pane(w, tmp_wp); |
layout_refresh(w, 0); |
|
} |
} |
|
server_redraw_window(w); |
|
|
return (0); |
return (0); |
} |
} |