diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-03 16:55:09 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-03 16:55:09 +0000 |
commit | 743956edf898dceff67af785b7bda87cdbd3fdab (patch) | |
tree | 0785e10be103a660a69533facb41b2de8a5db692 /cmd-send-prefix.c | |
parent | 3e6b1459232e1ae4fd3bb55e95122cef369ae86b (diff) | |
download | rtmux-743956edf898dceff67af785b7bda87cdbd3fdab.tar.gz rtmux-743956edf898dceff67af785b7bda87cdbd3fdab.tar.bz2 rtmux-743956edf898dceff67af785b7bda87cdbd3fdab.zip |
Allow -c anywhere -s was allowed.
Diffstat (limited to 'cmd-send-prefix.c')
-rw-r--r-- | cmd-send-prefix.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cmd-send-prefix.c b/cmd-send-prefix.c index 4a67a434..87a8ba69 100644 --- a/cmd-send-prefix.c +++ b/cmd-send-prefix.c @@ -1,4 +1,4 @@ -/* $Id: cmd-send-prefix.c,v 1.10 2008-06-03 05:35:51 nicm Exp $ */ +/* $Id: cmd-send-prefix.c,v 1.11 2008-06-03 16:55:09 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -28,25 +28,25 @@ void cmd_send_prefix_exec(void *, struct cmd_ctx *); const struct cmd_entry cmd_send_prefix_entry = { "send-prefix", NULL, - CMD_CLIENTONLY_USAGE, + CMD_WINDOWONLY_USAGE, 0, - cmd_clientonly_parse, + cmd_windowonly_parse, cmd_send_prefix_exec, - cmd_clientonly_send, - cmd_clientonly_recv, - cmd_clientonly_free, + cmd_windowonly_send, + cmd_windowonly_recv, + cmd_windowonly_free, NULL }; void cmd_send_prefix_exec(void *ptr, struct cmd_ctx *ctx) { - struct client *c; + struct winlink *wl; - if ((c = cmd_clientonly_get(ptr, ctx)) == NULL) + if ((wl = cmd_windowonly_get(ptr, ctx, NULL)) == NULL) return; - window_key(c->session->curw->window, prefix_key); + window_key(wl->window, prefix_key); if (ctx->cmdclient != NULL) server_write_client(ctx->cmdclient, MSG_EXIT, NULL, 0); |