Make NetSurf's screen a public screen with the name "NetSurf".

svn path=/trunk/netsurf/; revision=5885
This commit is contained in:
Chris Young 2008-12-06 10:43:25 +00:00
parent 24291b6160
commit 7c695048ae
1 changed files with 11 additions and 0 deletions

View File

@ -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