[Xfce4-commits] [xfce/xfwm4] 01/04: netwm: Fix adding maximized state

noreply at xfce.org noreply at xfce.org
Thu Jul 26 07:17:52 CEST 2018


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

o   l   i   v   i   e   r       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 xfce/xfwm4.

commit 5e1354886ae9b22c0fe86ba695ed7f0a63fed14e
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Wed Jul 18 15:28:23 2018 +0200

    netwm: Fix adding maximized state
    
    Bug 14514
    
    xfwm4 would fail to add maximized states using extended window manager
    hints mechanisms.
---
 src/netwm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/netwm.c b/src/netwm.c
index e8011c3..732414c 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -378,9 +378,9 @@ clientUpdateNetState (Client * c, XClientMessageEvent * ev)
     {
         if (FLAG_TEST (c->xfwm_flags, XFWM_FLAG_HAS_MAXIMIZE))
         {
-            if ((action == NET_WM_STATE_ADD) && !FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED))
+            if ((action == NET_WM_STATE_ADD) && !FLAG_TEST_ALL (c->flags, CLIENT_FLAG_MAXIMIZED))
             {
-                mode = 0L;
+                mode = FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED);
                 if ((first  == display_info->atoms[NET_WM_STATE_MAXIMIZED_HORZ]) ||
                     (second == display_info->atoms[NET_WM_STATE_MAXIMIZED_HORZ]))
                 {

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


More information about the Xfce4-commits mailing list