version 1.103, 2017/01/13 11:56:43 |
version 1.104, 2017/02/09 15:04:53 |
|
|
{ |
{ |
struct session_group *sg; |
struct session_group *sg; |
|
|
if ((sg = session_group_find(s)) == NULL) |
if ((sg = session_group_contains(s)) == NULL) |
server_redraw_session(s); |
server_redraw_session(s); |
else { |
else { |
TAILQ_FOREACH(s, &sg->sessions, gentry) |
TAILQ_FOREACH(s, &sg->sessions, gentry) |
|
|
{ |
{ |
struct session_group *sg; |
struct session_group *sg; |
|
|
if ((sg = session_group_find(s)) == NULL) |
if ((sg = session_group_contains(s)) == NULL) |
server_status_session(s); |
server_status_session(s); |
else { |
else { |
TAILQ_FOREACH(s, &sg->sessions, gentry) |
TAILQ_FOREACH(s, &sg->sessions, gentry) |
|
|
} |
} |
|
|
if (options_get_number(s->options, "renumber-windows")) { |
if (options_get_number(s->options, "renumber-windows")) { |
if ((sg = session_group_find(s)) != NULL) { |
if ((sg = session_group_contains(s)) != NULL) { |
TAILQ_FOREACH(target_s, &sg->sessions, gentry) |
TAILQ_FOREACH(target_s, &sg->sessions, gentry) |
session_renumber_windows(target_s); |
session_renumber_windows(target_s); |
} else |
} else |
|
|
struct winlink *dstwl; |
struct winlink *dstwl; |
struct session_group *srcsg, *dstsg; |
struct session_group *srcsg, *dstsg; |
|
|
srcsg = session_group_find(src); |
srcsg = session_group_contains(src); |
dstsg = session_group_find(dst); |
dstsg = session_group_contains(dst); |
if (src != dst && srcsg != NULL && dstsg != NULL && srcsg == dstsg) { |
if (src != dst && srcsg != NULL && dstsg != NULL && srcsg == dstsg) { |
xasprintf(cause, "sessions are grouped"); |
xasprintf(cause, "sessions are grouped"); |
return (-1); |
return (-1); |
|
|
struct session_group *sg; |
struct session_group *sg; |
struct session *s1; |
struct session *s1; |
|
|
if ((sg = session_group_find(s)) == NULL) |
if ((sg = session_group_contains(s)) == NULL) |
server_destroy_session(s); |
server_destroy_session(s); |
else { |
else { |
TAILQ_FOREACH_SAFE(s, &sg->sessions, gentry, s1) { |
TAILQ_FOREACH_SAFE(s, &sg->sessions, gentry, s1) { |