--- transSet.c.orig 2004-09-10 10:32:38.000000000 +0200 +++ transSet.c 2004-09-10 10:37:53.000000000 +0200 @@ -37,6 +37,8 @@ /* wonderful utility */ Setup_Display_And_Screen(&argc, argv); + target_win = Select_Window_Args(&argc, argv); + if (argv[1]) { printf ("got arg %s\n", argv[1]); @@ -46,7 +48,10 @@ } /* grab mouse and return window that is next clicked */ - target_win = Select_Window(dpy); + if (target_win == 0) + target_win = Select_Window(dpy); + + printf("target_win is 0x%08x\n", target_win); unsigned char *data;