Misc: Code cleanup & debug code changes

- Merge @daBrado's focus event debugging code. Thanks!

- Use macro to reduce code redundancy in various functions.

- Move focus event validation from ev_focus_out() to a separate
  function.

- Add logic in ev_handle() to increase the chance of successful window
  name detection if compton is not reading window names normally (i.e.
  if there's no --shadow-exclude), when DEBUG_EVENTS is on.
This commit is contained in:
Richard Grenville
2012-11-03 05:51:40 +08:00
parent 66d3f30978
commit a0b0ff5d0a
2 changed files with 105 additions and 114 deletions

View File

@ -1009,7 +1009,7 @@ win_get_class(Display *dpy, win *w);
static int
ev_serial(XEvent *ev);
static char *
static const char *
ev_name(XEvent *ev);
static Window