summaryrefslogtreecommitdiff
path: root/frontends/amiga/corewindow.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2017-01-02 12:57:07 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2017-01-02 12:57:07 +0000
commita9cc0792a43d108e5ff61055354422a6c7218a74 (patch)
tree872f039a38f221c86403c1d7020b38c5d5a07056 /frontends/amiga/corewindow.c
parentdab118b6f7e9a22ed01413a2ce2fd60e4c4df97b (diff)
downloadnetsurf-a9cc0792a43d108e5ff61055354422a6c7218a74.tar.gz
netsurf-a9cc0792a43d108e5ff61055354422a6c7218a74.tar.bz2
migrate sslcert to use corewindow
predictably blank
Diffstat (limited to 'frontends/amiga/corewindow.c')
-rw-r--r--frontends/amiga/corewindow.c15
1 files changed, 9 insertions, 6 deletions
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) {