From b96ac809018c461b55aed66459a68a71dd08047f Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 9 Apr 2020 13:52:31 +0000 Subject: Some unnecessary assignments and unused variables. --- server-client.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'server-client.c') diff --git a/server-client.c b/server-client.c index 5d39e492..b6ce94a9 100644 --- a/server-client.c +++ b/server-client.c @@ -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)) -- cgit