From c12873184cb18f24dd56094860ef853587769a04 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Thu, 15 Feb 2018 02:47:52 +0100 Subject: [PATCH] Debug processed XEvents --- src/x11/screen.c | 2 ++ src/x11/x.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/x11/screen.c b/src/x11/screen.c index c350236..2bd37b8 100644 --- a/src/x11/screen.c +++ b/src/x11/screen.c @@ -146,6 +146,8 @@ void screen_check_event(XEvent event) { if (event.type == randr_event_base + RRScreenChangeNotify) randr_update(); + else + LOG_D("XEvent: Ignored '%d'", event.type); } void xinerama_update(void) diff --git a/src/x11/x.c b/src/x11/x.c index 92942da..fa2bc1c 100644 --- a/src/x11/x.c +++ b/src/x11/x.c @@ -852,6 +852,8 @@ gboolean x_mainloop_fd_dispatch(GSource *source, GSourceFunc callback, gpointer unsigned int state; while (XPending(xctx.dpy) > 0) { XNextEvent(xctx.dpy, &ev); + LOG_D("XEvent: processing '%d'", ev.type); + switch (ev.type) { case Expose: if (ev.xexpose.count == 0 && xctx.visible) {