[Xfce4-commits] [apps/xfce4-terminal] 01/02: Revert "Help some WMs (e.g. openbox) handle terminal size when toggling fullscreen or maximized mode"

noreply at xfce.org noreply at xfce.org
Tue Nov 6 23:06:08 CET 2018


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit a05492d0cbd80373be7417c9e951d2911a59da3c
Author: Igor <f2404 at yandex.ru>
Date:   Tue Nov 6 17:03:26 2018 -0500

    Revert "Help some WMs (e.g. openbox) handle terminal size when toggling fullscreen or maximized mode"
    
    Fixes bug #14817
    
    This reverts commit b1186b9379d6d90aa2f17f80bf83564c69d0d4ad.
---
 terminal/terminal-window.c | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 74c7060..809854e 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -668,26 +668,19 @@ terminal_window_state_event (GtkWidget           *widget,
                              GdkEventWindowState *event)
 {
   TerminalWindow *window = TERMINAL_WINDOW (widget);
+  gboolean        fullscreen;
 
   terminal_return_val_if_fail (TERMINAL_IS_WINDOW (window), FALSE);
 
-  if (((event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) != 0
-       || (event->changed_mask & GDK_WINDOW_STATE_MAXIMIZED) != 0)
+  /* update the fullscreen action if the fullscreen state changed by the wm */
+  if ((event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) != 0
       && gtk_widget_get_visible (widget))
     {
-      gboolean fullscreen = (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) != 0;
-      gboolean maximized = (event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) != 0;
-
-      /* update the fullscreen action if the fullscreen state changed by the wm */
+      fullscreen = (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) != 0;
 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
       if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (window->priv->action_fullscreen)) != fullscreen)
         gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (window->priv->action_fullscreen), fullscreen);
 G_GNUC_END_IGNORE_DEPRECATIONS
-
-      /* restore the window size after turning fullscreen or maximized mode off
-         see https://bugzilla.xfce.org/show_bug.cgi?id=14765 */
-      if (!fullscreen && !maximized)
-        terminal_window_size_pop (window);
     }
 
   if (GTK_WIDGET_CLASS (terminal_window_parent_class)->window_state_event != NULL)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list