X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fphosphor.c;h=3ce65d73ce8ea9ba203cc9589c83b33c9a79dc01;hb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;hp=6f9fe9170a261d88bf174ce61a31bed7e897ee8e;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/phosphor.c b/hacks/phosphor.c index 6f9fe917..3ce65d73 100644 --- a/hacks/phosphor.c +++ b/hacks/phosphor.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1999-2006 Jamie Zawinski +/* xscreensaver, Copyright (c) 1999-2008 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 @@ -1338,7 +1338,7 @@ static void drain_input (p_state *state) { XtAppContext app = XtDisplayToApplicationContext (state->dpy); - if (state->input_available_p) + if (state->input_available_p && state->pipe) { unsigned char s[2]; int n = read (fileno (state->pipe), (void *) s, 1); @@ -1512,6 +1512,7 @@ phosphor_free (Display *dpy, Window window, void *closure) static const char *phosphor_defaults [] = { ".background: Black", ".foreground: #00FF00", + "*fpsSolid: true", "*fadeForeground: #006400", "*flareForeground: #FFFFFF", #if defined(BUILTIN_FONT)