On 08.03.2012 15:57 (UTC+1), Brad Jorsch wrote:
On Mon, Mar 05, 2012 at 10:51:19PM +0100, Rainer Hurling wrote:

# ------------------------------------------------------------------
# First run with fresh wmaker.inst: save session when leaving
/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
/usr/local/bin/wmaker(StartUp(startup.c:767)): restarting: 1, norestore: 0

Is there supposed to be a restart in here?

No, as described, no restart in my first run.

# ------------------------------------------------------------------
# 4. run: restarting wmaker from menu, then leaving
/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
/usr/local/bin/wmaker(StartUp(startup.c:767)): restarting: 1, 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:635)): Got --for-real=, set
restarting = 1
/usr/local/bin/wmaker(StartUp(startup.c:767)): restarting: 1, norestore: 0

And two restarts in here?

Only one restart from within the menu, then leaving without saving.

I'm guessing not. Let's try the attached patch to see for sure.


Thanks for your patch for the three files. I tried it with our scenarios, described in the first lines as before:


# 6. run with fresh wmaker.inst: without saving session when leaving
/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:554)): Arg 1 is --for-real
/usr/local/bin/wmaker(real_main(main.c:634)): Got --for-real, set restarting = 0 /usr/local/bin/wmaker(handleExtensions(event.c:599)): Calling Restart() in handleExtensions!
/usr/local/bin/wmaker(Restart(main.c:290)): Called Restart()!
/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:554)): Arg 1 is --for-real=
/usr/local/bin/wmaker(real_main(main.c:637)): Got --for-real=, set restarting = 1
/usr/local/bin/wmaker(StartUp(startup.c:767)): restarting: 1, norestore: 0


# 7. run: save session when leaving
/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:554)): Arg 1 is --for-real
/usr/local/bin/wmaker(real_main(main.c:634)): Got --for-real, set restarting = 0 /usr/local/bin/wmaker(handleExtensions(event.c:599)): Calling Restart() in handleExtensions!
/usr/local/bin/wmaker(Restart(main.c:290)): Called Restart()!
/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:554)): Arg 1 is --for-real=
/usr/local/bin/wmaker(real_main(main.c:637)): Got --for-real=, set restarting = 1
/usr/local/bin/wmaker(StartUp(startup.c:767)): restarting: 1, norestore: 0


# 8. run: restarting wmaker from menu, then leaving
/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:554)): Arg 1 is --for-real
/usr/local/bin/wmaker(real_main(main.c:634)): Got --for-real, set restarting = 0 /usr/local/bin/wmaker(handleExtensions(event.c:599)): Calling Restart() in handleExtensions!
/usr/local/bin/wmaker(Restart(main.c:290)): Called Restart()!
/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:554)): Arg 1 is --for-real=
/usr/local/bin/wmaker(real_main(main.c:637)): Got --for-real=, set restarting = 1
/usr/local/bin/wmaker(StartUp(startup.c:767)): restarting: 1, norestore: 0

/usr/local/bin/wmaker(restartCommand(rootmenu.c:249)): Calling Restart() in restartCommand!
/usr/local/bin/wmaker(Restart(main.c:290)): Called Restart()!
/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:554)): Arg 1 is --for-real=
/usr/local/bin/wmaker(real_main(main.c:637)): Got --for-real=, set restarting = 1
/usr/local/bin/wmaker(StartUp(startup.c:767)): restarting: 1, norestore: 0


# 9. run: save session from menu, then leaving without saving
/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:554)): Arg 1 is --for-real
/usr/local/bin/wmaker(real_main(main.c:634)): Got --for-real, set restarting = 0 /usr/local/bin/wmaker(handleExtensions(event.c:599)): Calling Restart() in handleExtensions!
/usr/local/bin/wmaker(Restart(main.c:290)): Called Restart()!
/usr/local/bin/wmaker(main(main.c:552)): restarting: 0, norestore: 0

/usr/local/bin/wmaker(main(main.c:554)): Arg 1 is --for-real=
/usr/local/bin/wmaker(real_main(main.c:637)): Got --for-real=, set restarting = 1
/usr/local/bin/wmaker(StartUp(startup.c:767)): restarting: 1, norestore: 0


How can I trigger wmessage("Calling Restart() in DispatchEvent!") in src/event.c? It did not appear in this list.


--
To unsubscribe, send mail to [email protected].

Reply via email to