* looking for address@hidden/ratpoison--xinerama--1.3--patch-7 to compare with * comparing to address@hidden/ratpoison--xinerama--1.3--patch-7 M ratpoison/src/screen.c M ratpoison/src/screen.h M ratpoison/src/actions.c M ratpoison/src/actions.h * modified files --- orig/ratpoison/src/actions.c +++ mod/ratpoison/src/actions.c @@ -92,6 +92,7 @@ {"fselect", cmd_fselect, arg_VOID}, {"fdump", cmd_fdump, arg_STRING}, {"frestore", cmd_frestore, arg_STRING}, + {"screens", cmd_screens, arg_STRING}, {"verbexec", cmd_verbexec, arg_STRING}, {"unmanage", cmd_unmanage, arg_STRING}, {"clrunmanaged", cmd_clrunmanaged, arg_VOID}, @@ -1562,6 +1563,33 @@ return NULL; } +char * +cmd_screens (int interactively, char *data) +{ + struct sbuf *s; + char *tmp; + rp_frame *cur; + int i; + + s = sbuf_new (0); + + /* FIXME: Oooh, gross! there's a trailing comma, yuk! */ + for (i=0; iwidth, + screen->height, + screen->left, + screen->top); + + /* Extract the string and return it, and don't forget to free s. */ + tmp = sbuf_get (s); + free (s); + return tmp; +} + /* Given a root window, return the rp_screen struct */ rp_screen * find_screen (Window w) --- orig/ratpoison/src/screen.h +++ mod/ratpoison/src/screen.h @@ -37,4 +37,6 @@ int is_rp_window_for_screen (Window w, rp_screen *s); +char *screen_dump (rp_screen *screen); + #endif