X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fsubprocs.c;h=b6948e8789c30dd8c8c025f79eeafa1d7a568c27;hp=ec2718de03fe1686ec86f5bad6c2ac08555128df;hb=4cecfc89e5e889c7232693897c06168fb378bd5c;hpb=c28aecf9fc41e3a03494bacf7279745425e2fa18 diff --git a/driver/subprocs.c b/driver/subprocs.c index ec2718de..b6948e87 100644 --- a/driver/subprocs.c +++ b/driver/subprocs.c @@ -1,5 +1,5 @@ /* subprocs.c --- choosing, spawning, and killing screenhacks. - * xscreensaver, Copyright (c) 1991-2002 Jamie Zawinski + * xscreensaver, Copyright (c) 1991-2003 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -661,6 +661,11 @@ spawn_screenhack_1 (saver_screen_info *ssi, Bool first_time_p) /* No hacks at all */ new_hack = -1; } + else if (p->screenhacks_count == 1) + { + /* Exactly one hack in the list */ + new_hack = 0; + } else if (si->selection_mode == -1) { /* Select the next hack, wrapping. */