aboutsummaryrefslogtreecommitdiff
path: root/cmd-switch-client.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-06-05 14:01:19 +0100
committerThomas Adam <thomas@xteddy.org>2020-06-05 14:01:19 +0100
commit92c8cc17c3ec1dfbad83876b9308b107fbfab119 (patch)
treebc321c9e05b48bb023207862b767a2a3f9577569 /cmd-switch-client.c
parent47a5afe5bf91f0525aacba691829a36156213e17 (diff)
parentd919fa1ed0ea3b167ffc811abba26a2dbcd20631 (diff)
downloadrtmux-92c8cc17c3ec1dfbad83876b9308b107fbfab119.tar.gz
rtmux-92c8cc17c3ec1dfbad83876b9308b107fbfab119.tar.bz2
rtmux-92c8cc17c3ec1dfbad83876b9308b107fbfab119.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-switch-client.c')
-rw-r--r--cmd-switch-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-switch-client.c b/cmd-switch-client.c
index d062b946..fc7f9d75 100644
--- a/cmd-switch-client.c
+++ b/cmd-switch-client.c
@@ -116,7 +116,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
} else {
if (cmdq_get_client(item) == NULL)
return (CMD_RETURN_NORMAL);
- if (wl != NULL && wp != NULL) {
+ if (wl != NULL && wp != NULL && wp != wl->window->active) {
w = wl->window;
if (window_push_zoom(w, args_has(args, 'Z')))
server_redraw_window(w);