Mercurial > dwindows
changeset 2812:723b79981427
Android: I think we need to close the window if the DELETE handler does not
return a positive value. If there is no handler we automatically close it...
but it should also close I believe if the handler doesn't report handled.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 27 Jul 2022 09:56:26 +0000 |
parents | 30cb5d646267 |
children | 9c9b680f7772 |
files | android/dw.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/android/dw.cpp Wed Jul 27 08:32:32 2022 +0000 +++ b/android/dw.cpp Wed Jul 27 09:56:26 2022 +0000 @@ -343,6 +343,8 @@ { int (* API closefunc)(HWND, void *) = (int (* API)(HWND, void *))handler->signalfunction; retval = closefunc(handler->window, handler->data); + if(retval < 1) + dw_window_destroy(handler->window); break; } /* Window expose/draw event */