[epiphany/wip/exalm/fullscreen: 9/12] session: Show headerbar when restoring fullscreen state




commit 0b28e04738a472d91d4d51c01a5dba4792db010e
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Mar 23 14:30:52 2021 +0500

    session: Show headerbar when restoring fullscreen state
    
    This should behave the same way as fullscreen in menu, not fullscreen
    requested by webpages.

 src/ephy-session.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 544b4200a..ba0666560 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -1180,8 +1180,11 @@ session_parse_window (SessionParserContext  *context,
   if (is_maximized)
     gtk_window_maximize (GTK_WINDOW (context->window));
 
-  if (is_fullscreen)
+  if (is_fullscreen) {
+    /* Treat fullscreen on session restore same as fullscreen action */
+    ephy_window_show_fullscreen_header_bar (context->window);
     gtk_window_fullscreen (GTK_WINDOW (context->window));
+  }
 }
 
 static void


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