summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-04-09 13:52:31 +0000
committernicm <nicm@openbsd.org>2020-04-09 13:52:31 +0000
commitba27d7a56dd2751c32a9ff9aa24fa68c024b114d (patch)
treed43c4add5cc8a1ffac5c58e199f1e6b10addf0d6 /usr.bin/tmux/server-client.c
parentPass correct flags to fnmatch. (diff)
downloadwireguard-openbsd-ba27d7a56dd2751c32a9ff9aa24fa68c024b114d.tar.xz
wireguard-openbsd-ba27d7a56dd2751c32a9ff9aa24fa68c024b114d.zip
Some unnecessary assignments and unused variables.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 0605445e659..9f1a9a9e404 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.314 2020/04/09 12:16:16 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.315 2020/04/09 13:52:31 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -606,10 +606,9 @@ have_event:
wp = window_get_active_at(s->curw->window, px, py);
if (wp != NULL)
where = PANE;
+ else
+ return (KEYC_UNKNOWN);
}
-
- if (where == NOWHERE)
- return (KEYC_UNKNOWN);
if (where == PANE)
log_debug("mouse %u,%u on pane %%%u", x, y, wp->id);
else if (where == BORDER)
@@ -1543,7 +1542,7 @@ server_client_reset_state(struct client *c)
struct window_pane *wp = w->active, *loop;
struct screen *s;
struct options *oo = c->session->options;
- int mode, cursor = 0;
+ int mode, cursor;
u_int cx = 0, cy = 0, ox, oy, sx, sy;
if (c->flags & (CLIENT_CONTROL|CLIENT_SUSPENDED))