-/* $OpenBSD: input-keys.c,v 1.43 2015/04/21 15:21:41 nicm Exp $ */
+/* $OpenBSD: input-keys.c,v 1.44 2015/10/26 17:17:06 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
char *out;
u_char ch;
- log_debug("writing key 0x%x (%s)", key, key_string_lookup_key(key));
+ log_debug("writing key 0x%x (%s) to %%%u", key,
+ key_string_lookup_key(key), wp->id);
/* If this is a mouse key, pass off to mouse function. */
if (KEYC_IS_MOUSE(key)) {
buf[len++] = x + 33;
buf[len++] = y + 33;
}
- log_debug("writing mouse %.*s", (int)len, buf);
+ log_debug("writing mouse %.*s to %%%u", (int)len, buf, wp->id);
bufferevent_write(wp->event, buf, len);
}
-/* $OpenBSD: server-client.c,v 1.159 2015/10/23 23:46:36 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.160 2015/10/26 17:17:06 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
wp = window_get_active_at(s->curw->window, x, y);
if (wp != NULL)
where = PANE;
+ log_debug("mouse at %u,%u is on pane %%%u", x, y,
+ wp->id);
}
if (where == NOWHERE)
return (KEYC_NONE);