X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fxscreensaver.c;h=2fdc4ac6d20b5a04ae6ff66f14ec8cedf854274a;hp=70bb95424ef88dcb0fc798afc7fd689bad33a14f;hb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;hpb=50be9bb40dc60130c99ffa568e6677779904ff70 diff --git a/driver/xscreensaver.c b/driver/xscreensaver.c index 70bb9542..2fdc4ac6 100644 --- a/driver/xscreensaver.c +++ b/driver/xscreensaver.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1991-2008 Jamie Zawinski +/* xscreensaver, Copyright (c) 1991-2011 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 @@ -1227,6 +1227,11 @@ main_loop (saver_info *si) for (i = 0; i < si->nscreens; i++) spawn_screenhack (&si->screens[i]); + /* If we are blanking only, we might as well power down the monitor + right now, regardless of what the DPMS settings are. */ + if (p->mode == BLANK_ONLY) + monitor_power_on (si, False); + /* Don't start the cycle timer in demo mode. */ if (!si->demoing_p && p->cycle) si->cycle_id = XtAppAddTimeOut (si->app, @@ -1382,6 +1387,15 @@ main (int argc, char **argv) struct passwd *spasswd; int i; + /* It turns out that if we do NLS stuff here, people running in Japanese + locales get font craziness on the password dialog, presumably because + it is displaying Japanese characters in a non-Japanese font. I don't + understand how to automatically make all this crap work properly by + default, so until someone sends me a better patch, just leave it off + and run the daemon in English. -- jwz, 29-Sep-2010 + */ +#undef ENABLE_NLS + #ifdef ENABLE_NLS if (!setlocale (LC_ALL, "")) fprintf (stderr, "locale not supported by C library\n");