chiark / gitweb /
Cope with big fonts and commodities
[ypp-sc-tools.db-live.git] / pctb / pages.c
index ca2428d874d9a7b87ee0f3b231fc8f37bb7594c8..8914bd64fa82d01b3283eeb2fcfb1e98df623f0e 100644 (file)
@@ -543,6 +543,7 @@ timestamp();
   send_key(XK_w);
   send_key(XK_Return);
   sync_after_input();
+  sysassert(! usleep(1000000) );
 }
 
 void take_screenshots(void) {
@@ -694,7 +695,7 @@ void find_yppclient_window(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));
@@ -712,8 +713,9 @@ void find_yppclient_window(void) {
     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",