LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   FVWM: graceful exit (https://www.linuxquestions.org/questions/linux-software-2/fvwm-graceful-exit-404386/)

yozhhh 01-17-2006 05:11 AM

FVWM: graceful exit
 
Command "Quit" exits from FVWM. If any X Application has unsaved data, this data will be lost. How to change this behaviour? I would like that FVWM tries at first to close all opened windows and waits until all applications store unsaved data (incl. using the "Save data or not?"-application-specific-dialogs). Is it possible? I tried

DestroyFunc ExitFunction
AddToFunc ExitFunction
+ I All Close
+ I Quit

but "All Close" does not wait for the correct closing of all applications and returns immediately; afterthat "Quit" exits from FVWM and X. Application data is not saved...
Is there a way to check after "All Close" that all apps/windows are really closed and then execute "Quit" (or wait otherwise)?

yozhhh 01-17-2006 07:56 AM

OK, i found the answer:

DestroyFunc FuncFvwmExit
AddToFunc FuncFvwmExit
+ I All Close
+ I FuncFvwmWaitExit

DestroyFunc FuncFvwmWaitExit
AddToFunc FuncFvwmWaitExit
+ I All Nop
+ I TestRc (NoMatch) Quit
+ I Schedule 500 FuncFvwmWaitExit

Thanx to anonymous from http://www.linux.org.ru/view-message.jsp?msgid=1231195 :)


All times are GMT -5. The time now is 11:43 PM.