Исправление
matrixd,
(текущая версия)
:
Syntax
Status XFetchName(display, w, window_name_return)
Display *display;
Window w;
char **window_name_return;
Arguments
display Specifies the connection to the X server.
w Specifies the window.
window_name_return Returns the window name, which is a null-terminated string.
window_name_return Returns the window name, which is a null-terminated string.
а у тебя
char **name = NULL;
...
XFetchName(dpy,cw[i],name);
//Xutf8TextPropertyToTextList(dpy,&text,&name,¶m);
printf("%s\n",name[i]);
Исходная версия
matrixd,
:
Syntax
Status XFetchName(display, w, window_name_return)
Display *display;
Window w;
char **window_name_return;
Arguments
display Specifies the connection to the X server.
w Specifies the window.
window_name_return Returns the window name, which is a null-terminated string.
window_name_return Returns the window name, which is a null-terminated string.
а у тебя
XFetchName(dpy,cw[i],name);
//Xutf8TextPropertyToTextList(dpy,&text,&name,¶m);
printf("%s\n",name[i]);