diff options
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 2a541a5b4..6dbedb68c 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -441,8 +441,12 @@ void gui_init2(int argc, char** argv) SA_Depth,option_screen_depth, SA_DisplayID,id, SA_Title,nsscreentitle, + SA_Type,CUSTOMSCREEN, + SA_PubName,"NetSurf", SA_LikeWorkbench,TRUE, TAG_DONE); + + if(scrn) PubScreenStatus(scrn,0); } } @@ -536,6 +540,13 @@ void ami_handle_msg(void) struct InputEvent *ie; struct Node *tabnode; + if(IsMinListEmpty(window_list)) + { + /* no windows in list, so NetSurf should not be running */ + netsurf_quit = true; + return; + } + node = (struct nsObject *)GetHead((struct List *)window_list); do |