diff options
author | okan | 2019-03-08 15:04:39 +0000 |
---|---|---|
committer | okan | 2019-03-08 15:04:39 +0000 |
commit | 1f97a0b3c43fd4c7d00c2661af638d76c0c7acc0 (patch) | |
tree | ac7fe04d2d117ba8c6d45c822a65e392f42297c8 /xevents.c | |
parent | 70ba7fb2eae3142e0e36174cf69253283d5f2949 (diff) | |
download | cwm-1f97a0b3c43fd4c7d00c2661af638d76c0c7acc0.tar.gz |
extend verbose logging for key/button events
Diffstat (limited to 'xevents.c')
-rw-r--r-- | xevents.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xevents.c,v 1.141 2019/03/08 14:48:02 okan Exp $ + * $OpenBSD: xevents.c,v 1.142 2019/03/08 15:04:39 okan Exp $ */ /* @@ -234,7 +234,8 @@ xev_handle_buttonpress(XEvent *ee) struct screen_ctx *sc; struct bind_ctx *mb; - LOG_DEBUG3("window: 0x%lx", e->window); + LOG_DEBUG3("root: 0x%lx window: 0x%lx subwindow: 0x%lx", + e->root, e->window, e->subwindow); e->state &= ~IGNOREMODMASK; @@ -272,7 +273,8 @@ xev_handle_buttonrelease(XEvent *ee) XButtonEvent *e = &ee->xbutton; struct client_ctx *cc; - LOG_DEBUG3("window: 0x%lx", ee->xbutton.window); + LOG_DEBUG3("root: 0x%lx window: 0x%lx subwindow: 0x%lx", + e->root, e->window, e->subwindow); if ((cc = client_find(e->window)) != NULL) { if (cc->flags & (CLIENT_ACTIVE | CLIENT_HIGHLIGHT)) { @@ -292,7 +294,7 @@ xev_handle_keypress(XEvent *ee) KeySym keysym, skeysym; unsigned int modshift; - LOG_DEBUG3("root: 0x%lx window: 0x%lx subwindow: 0x%lx ", + LOG_DEBUG3("root: 0x%lx window: 0x%lx subwindow: 0x%lx", e->root, e->window, e->subwindow); if ((sc = screen_find(e->root)) == NULL) @@ -346,7 +348,8 @@ xev_handle_keyrelease(XEvent *ee) KeySym keysym; unsigned int i; - LOG_DEBUG3("window: 0x%lx", e->window); + LOG_DEBUG3("root: 0x%lx window: 0x%lx subwindow: 0x%lx", + e->root, e->window, e->subwindow); if ((sc = screen_find(e->root)) == NULL) return; |