diff options
author | okan | 2018-02-04 22:56:26 +0000 |
---|---|---|
committer | okan | 2018-02-04 22:56:26 +0000 |
commit | 69612bdea7ce4935bf16e616320045742af5ca20 (patch) | |
tree | 55d7999dde386acd6e4490b9686f126c104d1cb8 /xevents.c | |
parent | 49f8a10570f46a2a33c393e2bc578feff7a3bbca (diff) | |
download | cwm-69612bdea7ce4935bf16e616320045742af5ca20.tar.gz |
Slightly expand and expose verbose debugging.
Diffstat (limited to 'xevents.c')
-rw-r--r-- | xevents.c | 30 |
1 files changed, 15 insertions, 15 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.133 2018/02/02 13:50:22 okan Exp $ + * $OpenBSD: xevents.c,v 1.134 2018/02/04 22:56:26 okan Exp $ */ /* @@ -77,7 +77,7 @@ xev_handle_maprequest(XEvent *ee) XMapRequestEvent *e = &ee->xmaprequest; struct client_ctx *cc = NULL, *old_cc; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); if ((old_cc = client_current()) != NULL) client_ptrsave(old_cc); @@ -95,7 +95,7 @@ xev_handle_unmapnotify(XEvent *ee) XUnmapEvent *e = &ee->xunmap; struct client_ctx *cc; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); if ((cc = client_find(e->window)) != NULL) { if (e->send_event) { @@ -113,7 +113,7 @@ xev_handle_destroynotify(XEvent *ee) XDestroyWindowEvent *e = &ee->xdestroywindow; struct client_ctx *cc; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); if ((cc = client_find(e->window)) != NULL) client_delete(cc); @@ -127,7 +127,7 @@ xev_handle_configurerequest(XEvent *ee) struct screen_ctx *sc; XWindowChanges wc; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); if ((cc = client_find(e->window)) != NULL) { sc = cc->sc; @@ -182,7 +182,7 @@ xev_handle_propertynotify(XEvent *ee) struct screen_ctx *sc; struct client_ctx *cc; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); if ((cc = client_find(e->window)) != NULL) { switch (e->atom) { @@ -219,7 +219,7 @@ xev_handle_enternotify(XEvent *ee) XCrossingEvent *e = &ee->xcrossing; struct client_ctx *cc; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); Last_Event_Time = e->time; @@ -235,7 +235,7 @@ xev_handle_buttonpress(XEvent *ee) struct screen_ctx *sc; struct bind_ctx *mb; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); e->state &= ~IGNOREMODMASK; @@ -273,7 +273,7 @@ xev_handle_buttonrelease(XEvent *ee) XButtonEvent *e = &ee->xbutton; struct client_ctx *cc; - DPRINTF("window: 0x%lx", ee->xbutton.window); + LOG_DEBUG3("window: 0x%lx", ee->xbutton.window); if ((cc = client_find(e->window)) != NULL) { if (cc->flags & (CLIENT_ACTIVE | CLIENT_HIGHLIGHT)) { @@ -293,7 +293,7 @@ xev_handle_keypress(XEvent *ee) KeySym keysym, skeysym; unsigned int modshift; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); keysym = XkbKeycodeToKeysym(X_Dpy, e->keycode, 0, 0); skeysym = XkbKeycodeToKeysym(X_Dpy, e->keycode, 0, 1); @@ -346,7 +346,7 @@ xev_handle_keyrelease(XEvent *ee) KeySym keysym; unsigned int i; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); if ((sc = screen_find(e->root)) == NULL) return; @@ -377,7 +377,7 @@ xev_handle_clientmessage(XEvent *ee) struct client_ctx *cc, *old_cc; struct screen_ctx *sc; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); if (e->message_type == cwmh[WM_CHANGE_STATE]) { if ((cc = client_find(e->window)) != NULL) { @@ -426,7 +426,7 @@ xev_handle_randr(XEvent *ee) struct screen_ctx *sc; int i; - DPRINTF("new size: %d/%d", rev->width, rev->height); + LOG_DEBUG3("new size: %d/%d", rev->width, rev->height); i = XRRRootToScreen(X_Dpy, rev->root); TAILQ_FOREACH(sc, &Screenq, entry) { @@ -448,7 +448,7 @@ xev_handle_mappingnotify(XEvent *ee) XMappingEvent *e = &ee->xmapping; struct screen_ctx *sc; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); XRefreshKeyboardMapping(e); if (e->request == MappingKeyboard) { @@ -463,7 +463,7 @@ xev_handle_expose(XEvent *ee) XExposeEvent *e = &ee->xexpose; struct client_ctx *cc; - DPRINTF("window: 0x%lx", e->window); + LOG_DEBUG3("window: 0x%lx", e->window); if ((cc = client_find(e->window)) != NULL && e->count == 0) client_draw_border(cc); |