Implement setting the WM_NAME of i3 container windows for debugging

This commit is contained in:
Michael Stapelberg
2010-11-14 16:41:46 +01:00
parent e85bb09017
commit 945632ddcb
6 changed files with 63 additions and 0 deletions

View File

@ -185,6 +185,10 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
nc->window = cwindow;
x_reinit(nc);
char *name;
asprintf(&name, "[i3 con] container around %p", cwindow);
x_set_name(nc, name);
free(name);
/* set floating if necessary */
bool want_floating = false;