Re: [AD] new window hooks patch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Now, what to do? Should we go with the ESC keypress simulation to keep
> compatibility with the past, or go without it for a cleaner, more elegant
> code?
I've got an idea to be it more elegant and also keep compability
why not make set_window_close_hook() be set by default to function (if no
other set_window_close_hook are called) that will simulate a ESC keypress.
(that way we have backwards compability and also we let the user to use
whatever function he wishes)
I mean, the hook is at first active at an allegro function that simulates
the esc keypress, but the user can change it to whatever function he wants
isnt it good?



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/