summaryrefslogtreecommitdiff
path: root/frontends/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-09-04 17:17:45 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-09-04 17:17:45 +0100
commit239205033ccdd215c1fcc058be2c844ea03e4870 (patch)
treefda794878709138622c51c2bd97070daa7ee5e91 /frontends/amiga/gui.c
parentcd0ed2249437a849f5a865eef35b24934b748672 (diff)
downloadnetsurf-239205033ccdd215c1fcc058be2c844ea03e4870.tar.gz
netsurf-239205033ccdd215c1fcc058be2c844ea03e4870.tar.bz2
Only bring the screen to the front if an active tab is being opened via re-launch
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r--frontends/amiga/gui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index e355d9f68..a530d62c2 100644
--- a/frontends/amiga/gui.c
+++ b/frontends/amiga/gui.c
@@ -1094,7 +1094,12 @@ static void gui_init2(int argc, char** argv)
ami_arexx_self(sendcmd);
FreeVec(sendcmd);
- ami_arexx_self("TOFRONT");
+ 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");
+ }
ami_quit=true;
return;