xforms-development
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XForms] Running code when application is closed by window manager


From: ЭлектроРысь
Subject: Re: [XForms] Running code when application is closed by window manager
Date: Fri, 16 Mar 2018 21:05:43 +0700
User-agent: Lynx/2.7

Just run it after a main fl_do_forms() loop. I do that, and it works.
This convention is also pretty straight in other environments (for
example, Win32 API).

FL_OBJECT *ctl;
do {
...
else if (ctl == quit_button) break;
} while ((ctl = fl_do_forms()));

// Out of loop, run deinit code
destroy_the_world();

fl_finish();
exit(0);

On 16.03.2018 20:40, jon wrote:
> I am trying to write a simple xforms app, I cant seem to find any way
> to run cleanup code when application is terminated by the window
> manager ?
> 
> google has not helped.
> 
> Does anyone have any examples?
> 
> Thanks,
> Jon
> 
> 
> 

-- 
/*
 * Andrey A. Rys /--/ Андрей А. Рысь
 * https://gitlab.com/lynxlynx/
 * PGP (main):  8ECB 36EC 9BBB 5899 37A6 063B ED73 2729 967C DBC5
 * PGP (email): 22D8 CD5D 155F A6D9 3687 ED8D C3DB 3874 72D7 2D8F
 */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]