From a9cc0792a43d108e5ff61055354422a6c7218a74 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 2 Jan 2017 12:57:07 +0000 Subject: migrate sslcert to use corewindow predictably blank --- frontends/amiga/corewindow.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'frontends/amiga/corewindow.c') diff --git a/frontends/amiga/corewindow.c b/frontends/amiga/corewindow.c index f05d47bf4..5aff07499 100644 --- a/frontends/amiga/corewindow.c +++ b/frontends/amiga/corewindow.c @@ -451,14 +451,18 @@ ami_cw_event(void *w) default: /* pass the event to the window owner */ if(ami_cw->event != NULL) - ami_cw->event(ami_cw, result); + if(ami_cw->event(ami_cw, result) == TRUE) { + return TRUE; + } break; } default: /* pass the event to the window owner */ if(ami_cw->event != NULL) - ami_cw->event(ami_cw, result); + if(ami_cw->event(ami_cw, result) == TRUE) { + return TRUE; + } break; } }; @@ -603,10 +607,9 @@ nserror ami_corewindow_init(struct ami_corewindow *ami_cw) /* set up the IDCMP hook for event processing (extended mouse, scrollbars) */ ami_cw->idcmp_hook.h_Entry = (void *)ami_cw_idcmp_hook; ami_cw->idcmp_hook.h_Data = ami_cw; - /* probably set this when defining the window - SetAttrs(ami_cw->objects[GID_CW_WIN], - WINDOW_IDCMPHook, &ami_cw->idcmp_hook, - TAG_DONE); */ + + /* open the window */ + ami_cw->win = (struct Window *)RA_OpenWindow(ami_cw->objects[GID_CW_WIN]); /* attach the scrollbars for event processing _if they are in the window border_ */ if(ami_cw->objects[GID_CW_HSCROLL] == NULL) { -- cgit v1.2.3