send_key(XK_w);
send_key(XK_Return);
sync_after_input();
+ sysassert(! usleep(1000000) );
}
void take_screenshots(void) {
#define ASSIGN(what, start, end) \
what= masprintf("%.*s", (end)-(start), start); \
- if (o_##what) REQUIRE( !strcmp(o_##what, what) ); \
+ if (o_##what) REQUIRE( !strcasecmp(o_##what, what) ); \
else
ASSIGN(ocean, spc1 + S(onthe), (title + len) - S(suffix));
if (children1) XFree(children1);
}
if (nfound>1)
- fatal("Found several possible YPP clients."
- " Close one, or specify the windowid with --window-id.\n");
+ fatal("Found several possible YPP clients. Close one,\n"
+ " disambiguate with --pirate or --ocean,"
+ " or specify --window-id.\n");
if (nfound<1)
fatal("Did not find %sYPP client."
" Use --window-id and/or report this as a fault.\n",