diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-09-10 20:41:07 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-09-10 20:41:07 +0100 |
commit | 92601c26aef50f924df63161305888a96b70383c (patch) | |
tree | 22e2aef4d4e2975cd6e845ea2dfd69e61b39d0b7 /frontends/amiga/gui.c | |
parent | 26c568af15eb266d188909c848406c07563286db (diff) | |
download | netsurf-92601c26aef50f924df63161305888a96b70383c.tar.gz netsurf-92601c26aef50f924df63161305888a96b70383c.tar.bz2 |
If NetSurf is already running, ensure when we open a new tab that it becomes active.
This matches the behaviour in more mainstream web browsers.
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r-- | frontends/amiga/gui.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 0a324ca68..fdbced232 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -1063,10 +1063,10 @@ static void gui_init2(int argc, char** argv) if(!notalreadyrunning) { STRPTR sendcmd = NULL; - char newtab[4] = "\0"; + char newtab[11] = "\0"; if(nsoption_bool(tab_new_session) == true) { - strcpy(newtab, "TAB"); + strcpy(newtab, "TAB ACTIVE"); } if(temp_homepage_url) { @@ -1078,12 +1078,8 @@ static void gui_init2(int argc, char** argv) ami_arexx_self(sendcmd); FreeVec(sendcmd); - if((nsoption_bool(tab_new_session) == true) && (nsoption_bool(new_tab_is_active) == true)) { - /* If we're opening a new tab and that tab will be active, bring the screen to the front. - *\todo consider if we should be bringing the window to the front too. - * If we're opening a new window, Intuition brings the screen to the front anyway. */ - ami_arexx_self("TOFRONT"); - } + /* Bring the screen to the front. Intuition may have already done this, but it doesn't hurt. */ + ami_arexx_self("TOFRONT"); ami_quit=true; return; |