summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-02-08 08:33:55 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-02-08 08:33:55 +0000
commit02aa9d2d2ffaf6fb967cb5cff61eb52d18bf3848 (patch)
tree302574100f7e7d9589d7d737f381f85d413a19a3 /usr.bin/tmux
parent362aba3e956af19d7f77275c98267534a66dff98 (diff)
Include "focused" in client flags, from Dan Aloni in GitHub issue 2558.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/server-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 7241f9d1a84..9d5b3d6476c 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.367 2021/01/18 11:14:23 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.368 2021/02/08 08:33:54 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2454,6 +2454,8 @@ server_client_get_flags(struct client *c)
*s = '\0';
if (c->flags & CLIENT_ATTACHED)
strlcat(s, "attached,", sizeof s);
+ if (c->flags & CLIENT_FOCUSED)
+ strlcat(s, "focused,", sizeof s);
if (c->flags & CLIENT_CONTROL)
strlcat(s, "control-mode,", sizeof s);
if (c->flags & CLIENT_IGNORESIZE)