[epiphany] Revert "ephy-shell: Always focus the main window when loading tabs in Wayland"



commit 757e295fd2e6a65a357124e51840b9e1b0e66386
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Tue May 17 11:53:37 2016 -0500

    Revert "ephy-shell: Always focus the main window when loading tabs in Wayland"
    
    This reverts commit af6a08f1c4feea2a1e1824c1cb714842764918ae.

 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 e8b890b..e050180 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]