mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Merge branch 'obsd-master'
This commit is contained in:
16
server-fn.c
16
server-fn.c
@ -175,6 +175,22 @@ server_lock_client(struct client *c)
|
||||
proc_send(c->peer, MSG_LOCK, -1, cmd, strlen(cmd) + 1);
|
||||
}
|
||||
|
||||
void
|
||||
server_kill_pane(struct window_pane *wp)
|
||||
{
|
||||
struct window *w = wp->window;
|
||||
|
||||
if (window_count_panes(w) == 1) {
|
||||
server_kill_window(w);
|
||||
recalculate_sizes();
|
||||
} else {
|
||||
server_unzoom_window(w);
|
||||
layout_close_pane(wp);
|
||||
window_remove_pane(w, wp);
|
||||
server_redraw_window(w);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
server_kill_window(struct window *w)
|
||||
{
|
||||
|
Reference in New Issue
Block a user