From 7c695048aefaa3eb1fcc07e27f27b3bc408fe3aa Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 6 Dec 2008 10:43:25 +0000 Subject: Make NetSurf's screen a public screen with the name "NetSurf". svn path=/trunk/netsurf/; revision=5885 --- amiga/gui.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3