Mercurial > dwindows
diff android/dw.cpp @ 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 | e0ac1ef1c85b |
children | 469e5748c8a5 |
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 */