diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2016-05-17 11:53:37 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2016-05-17 11:53:37 -0500 |
commit | 757e295fd2e6a65a357124e51840b9e1b0e66386 (patch) | |
tree | a142f29d7ed517490cbc8f6038a1639a85d88cb6 | |
parent | af6a08f1c4feea2a1e1824c1cb714842764918ae (diff) | |
download | epiphany-757e295fd2e6a65a357124e51840b9e1b0e66386.tar.gz |
Revert "ephy-shell: Always focus the main window when loading tabs in Wayland"
This reverts commit af6a08f1c4feea2a1e1824c1cb714842764918ae.
-rw-r--r-- | src/ephy-shell.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index e8b890be9..e0501804a 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -977,12 +977,8 @@ ephy_shell_open_uris_idle (OpenURIsData *data) if (reusing_empty_tab || data->flags & EPHY_NEW_TAB_JUMP) gtk_widget_grab_focus (GTK_WIDGET (embed)); - if (data->flags & EPHY_NEW_TAB_JUMP && ephy_embed_shell_get_mode (EPHY_EMBED_SHELL (data->shell)) != EPHY_EMBED_SHELL_MODE_TEST) { - if (data->user_time) - gtk_window_present_with_time (GTK_WINDOW (data->window), data->user_time); - else - gtk_window_present_with_time (GTK_WINDOW (data->window), time (NULL)); - } + if (data->flags & EPHY_NEW_TAB_JUMP && ephy_embed_shell_get_mode (EPHY_EMBED_SHELL (data->shell)) != EPHY_EMBED_SHELL_MODE_TEST) + gtk_window_present_with_time (GTK_WINDOW (data->window), data->user_time); } else { ephy_web_view_load_homepage (ephy_embed_get_web_view (embed)); ephy_window_activate_location (data->window); |