Re: openURL(URL, new-tab) : how to keep new tab in the background?
Witold Filipczyk <[email protected]> Sun, 14 Dec 2014 12:59:52 +0100
| Newsgroups | gmane.comp.web.elinks.user |
|---|---|
| Message-ID | <[email protected]_not_set.invalid> |
--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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.
--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="tab_background.patch"
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);
--huq684BweRXVnRxX
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--
http://lists.linuxfromscratch.org/listinfo/elinks-users
Unsubscribe: See the above information page
--huq684BweRXVnRxX--