[elinks-users] openURL(URL, new-tab) : how to keep new tab in the background?

Witold Filipczyk gglater62 at gmail.com
Sun Dec 14 03:59:52 PST 2014


On Sat, Dec 13, 2014 at 07:38:09AM +0530, Mayuresh wrote:
> When using
> 
>    elinks -remote openURL(URL, new-tab)
> 
> I find that elinks immediately focuses on the new tab.
> 
> Is there a way to keep new-tab loading in the background instead of
> immediately focusing on it?

If you apply this patch, the tabs will be loaded in background.
-------------- next part --------------
diff --git a/src/session/session.c b/src/session/session.c
index 244a97e..0178d70 100644
--- a/src/session/session.c
+++ b/src/session/session.c
@@ -962,7 +962,7 @@ init_remote_session(struct session *ses, enum remote_session_flags *remote_ptr,
 		 * inaccessible. Maybe we should not support this kind
 		 * of thing or make the window focus detecting code
 		 * more intelligent. --jonas */
-		open_uri_in_new_tab(ses, uri, 0, 0);
+		open_uri_in_new_tab(ses, uri, 1, 0);
 
 		if (remote & SES_REMOTE_PROMPT_URL) {
 			dialog_goto_url_open(ses);


More information about the elinks-users mailing list