Debug processed XEvents

This commit is contained in:
Benedikt Heine 2018-02-15 02:47:52 +01:00
parent aa5cc977cc
commit c12873184c
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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) {