diff options
author | nicm <nicm> | 2020-05-22 11:07:04 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-05-22 11:07:04 +0000 |
commit | 9a0763c3a06e589bd5d27046655603faea8c667f (patch) | |
tree | 7b99d37c74e989b02f0cd8998b52b32f47edb718 /cmd-refresh-client.c | |
parent | 31e3f2d530090793815d145a16a1ce3b469c4266 (diff) | |
download | rtmux-9a0763c3a06e589bd5d27046655603faea8c667f.tar.gz rtmux-9a0763c3a06e589bd5d27046655603faea8c667f.tar.bz2 rtmux-9a0763c3a06e589bd5d27046655603faea8c667f.zip |
Move client offset stuff into control.c since only control clients will
need it.
Diffstat (limited to 'cmd-refresh-client.c')
-rw-r--r-- | cmd-refresh-client.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd-refresh-client.c b/cmd-refresh-client.c index 65537917..4eb8417b 100644 --- a/cmd-refresh-client.c +++ b/cmd-refresh-client.c @@ -46,7 +46,6 @@ static void cmd_refresh_client_update_offset(struct client *tc, const char *value) { struct window_pane *wp; - struct client_offset *co; char *copy, *colon; u_int pane; @@ -63,11 +62,10 @@ cmd_refresh_client_update_offset(struct client *tc, const char *value) if (wp == NULL) goto out; - co = server_client_add_pane_offset(tc, wp); if (strcmp(colon, "on") == 0) - co->flags &= ~CLIENT_OFFSET_OFF; + control_set_pane_on(tc, wp); else if (strcmp(colon, "off") == 0) - co->flags |= CLIENT_OFFSET_OFF; + control_set_pane_off(tc, wp); out: free(copy); |