On 04.03.2012 11:06 (UTC+1), Doug Barton wrote:
On 03/04/2012 01:55, Rainer Hurling wrote:
--- src/main.c.orig 2012-02-14 20:36:01.000000000 +0100
+++ src/main.c 2012-03-01 17:50:45.000000000 +0100
@@ -546,6 +546,12 @@
memset(&wPreferences, 0, sizeof(WPreferences));
+ wmessage("restarting: %d, norestore: %s\n",
+ wPreferences.flags.restarting, wPreferences.flags.norestore);
These both need to be %d, not just the first one.
Sorry, this happens because I played around with mixing %s and %d ...
Here is the the output of wmessages with both set to %d:
/usr/local/bin/wmaker(main(main.c:550)): restarting: 0, norestore: 0
/usr/local/bin/wmaker(main(main.c:550)): restarting: 0, norestore: 0
/usr/local/bin/wmaker(main(main.c:552)): Arg 1 is --for-real
/usr/local/bin/wmaker(real_main(main.c:632)): Got --for-real, set
restarting = 0
/usr/local/bin/wmaker(main(main.c:550)): restarting: 0, norestore: 0
/usr/local/bin/wmaker(main(main.c:552)): Arg 1 is --for-real=
/usr/local/bin/wmaker(real_main(main.c:635)): Got --for-real=, set
restarting = 1
So there is no 'norestore: (null)' any more.
Update my last posting: The output from src/startup.c:766 only happens,
when I set
if (!wPreferences.flags.restarting) { ... }
instead of
if (wPreferences.flags.restarting == 0 &&
!wPreferences.flags.norestore) { ... }
/usr/local/bin/wmaker(StartUp(startup.c:766)): norestore: 0
--
To unsubscribe, send mail to [email protected].