#include #include typedef struct xenon_window { Window window; struct xenon_window* next; } xenon_window; static xenon_window* window_list = NULL; Window window_create() { xenon_window* new_window = (xenon_window*) malloc ( sizeof(xenon_window) ); new_window -> next = window_list; window_list = new_window; return new_window->window; } xenon_window* window_find(Window wid) { xenon_window* w = window_list; while(w) { if (w->window == wid) return w; w = w->next; } return NULL; } void window_resize(Window w, int width, int height) { xenon_window* xw = window_find(w); } void window_move(Window w, int posx, int posy) { xenon_window* xw = window_find(w); }