Terminal *term = (Terminal *)frontend; struct gui_data *inst = (struct gui_data *)(term->frontend);
struct gui_data *inst = (struct gui_data *)frontend;
long get_windowid(void *frontend){    Terminal *term = (Terminal *)frontend;    struct gui_data *inst = (struct gui_data *)(term->frontend);    return (long)GDK_WINDOW_XWINDOW(inst->area->window);}