#include "Desk.Wimp.h"
#include "Desk.Window.h"
#include "Desk.Handler.h"


extern Desk_bool Desk_Handler_DeleteWindow(Desk_event_pollblock *event, void *reference)
/*  Alternate handler to Desk_Handler_Close, which calls the higher-level 
 *  Desk_Window_Delete() to close and delete the window, release memory, and
 *  remove all handlers attached to the window.
 */
{
  Desk_UNUSED( reference);
  
  Desk_Window_Delete(event->data.openblock.window);
  return(Desk_bool_TRUE);
}
