Re: [AD] Closing window under X |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Angelo Mottola wrote:
[snip]
> Thanks to your message I've already modified the Allegro system driver
> structure to allow window closing callbacks set/remove.
Rats, I'm too late. Well, I have the resize hook for Windows if anyone's
interested :)
(I'm starting the X one too).
[snip]
> About the window closing callbacks issue, I was thinking about adding
> allegro_exit() in the queue automatically inside set_gfx_mode(), but now I
> wonder: allegro_exit() is already set as an atexit function, so it should be
> already called when a program exits; is this still true if a program is
> aborted with the window closing button?
Yes, it will be called twice if that's the case.
Why not by default just simulate the [esc] key? If the program needs
anything more advanced, then they can use a closing hook.
AFAIK this shouldn't break anything, as closing windows with the window
button couldn't be done before.
--
- Robert J Ohannessian