Misc: Code cleanup

- Form a function ev_window_name() for all window name detection in
  debugging code.

- Add unredir-if-possible to configuration file options.
This commit is contained in:
Richard Grenville
2012-11-14 21:34:51 +08:00
parent 09c10c227c
commit a92c2bd808
3 changed files with 48 additions and 31 deletions

View File

@ -1289,6 +1289,11 @@ add_damage_win(Display *dpy, win *w) {
}
}
#if defined(DEBUG_EVENTS) || defined(DEBUG_RESTACK)
static bool
ev_window_name(Display *dpy, Window wid, char **name);
#endif
inline static void
ev_handle(XEvent *ev);