diff options
author | 2020-07-06 09:14:20 +0000 | |
---|---|---|
committer | 2020-07-06 09:14:20 +0000 | |
commit | d3c4e94b7c2c9f48b70a5406eedfbc0dd283f3b8 (patch) | |
tree | 7752e22037ffff5434937c83660267db30fd2e43 /usr.bin/tmux/server-client.c | |
parent | Make this build on powerpc64. (diff) | |
download | wireguard-openbsd-d3c4e94b7c2c9f48b70a5406eedfbc0dd283f3b8.tar.xz wireguard-openbsd-d3c4e94b7c2c9f48b70a5406eedfbc0dd283f3b8.zip |
Add a way for control mode clients to subscribe to a format and be
notified of changes rather than having to poll. GitHub issue 2242.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r-- | usr.bin/tmux/server-client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index 43f479b0332..34c0ee42b3f 100644 --- a/usr.bin/tmux/server-client.c +++ b/usr.bin/tmux/server-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.358 2020/06/18 08:34:22 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.359 2020/07/06 09:14:20 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1474,11 +1474,13 @@ server_client_check_pane_resize(struct window_pane *wp) * Otherwise resize to the force size and start the timer. */ if (wp->flags & PANE_RESIZENOW) { - log_debug("%s: resizing %%%u after forced resize", __func__, wp->id); + log_debug("%s: resizing %%%u after forced resize", + __func__, wp->id); window_pane_send_resize(wp, 0); wp->flags &= ~(PANE_RESIZE|PANE_RESIZEFORCE|PANE_RESIZENOW); } else if (!evtimer_pending(&wp->force_timer, NULL)) { - log_debug("%s: forcing resize of %%%u", __func__, wp->id); + log_debug("%s: forcing resize of %%%u", __func__, + wp->id); window_pane_send_resize(wp, 1); server_client_start_force_timer(wp); } |