version 1.8, 2009/11/13 19:53:29 |
version 1.9, 2010/06/29 03:30:13 |
|
|
struct cmd_target_data *data = self->data; |
struct cmd_target_data *data = self->data; |
struct session *s; |
struct session *s; |
struct winlink *wl; |
struct winlink *wl; |
|
char *layout; |
|
|
if ((s = cmd_find_session(ctx, data->target)) == NULL) |
if ((s = cmd_find_session(ctx, data->target)) == NULL) |
return (-1); |
return (-1); |
|
|
RB_FOREACH(wl, winlinks, &s->windows) { |
RB_FOREACH(wl, winlinks, &s->windows) { |
ctx->print(ctx, "%d: %s [%ux%u]", |
ctx->print(ctx, "%d: %s [%ux%u]", |
wl->idx, wl->window->name, wl->window->sx, wl->window->sy); |
wl->idx, wl->window->name, wl->window->sx, wl->window->sy); |
|
layout = layout_dump(wl->window); |
|
ctx->print(ctx, " layout: %s", layout); |
|
xfree(layout); |
} |
} |
|
|
return (0); |
return (0); |