Window tree



Hi,

How can I get the Window tree of X from root window by using Gtk or Gdk ?
I tried gtk_window_list_toplevels() but the following example will
return NULL list:


int main(int argc, char *argv[])
{
    GList *list = NULL;
    gtk_init(&argc, &argv);

    list = gtk_window_list_toplevels();
    if (!list) {
        printf("NULL List\n");
    } else {
        do something ...
    }
    exit(0);
}

Thanks
KC



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]