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

olivier pushed a 
commit to branch 
xfce-4.14
in repository xfce/xfwm4.

commit d742ec0bed5cb5fb9d2280fe34fa0ff9251f698c
Author: Olivier Fourdan <four...@xfce.org>
Date:   Sun Apr 5 17:18:14 2020 +0200

    moveresize: Restore window state on move
    
    Bug: 16348
    
    When moving a maximized window, we would not restore the actual window
    state.
    
    With client-side decorations, that prevents shadows from being enabled.
    
    Make sure to restore the actual client state when moving.
    
    Signed-off-by: Olivier Fourdan <four...@xfce.org>
    (cherry picked from commit f3994308b5513899222738326fba01aa2a93ac2c)
    (cherry picked from commit 09fc6c9d20e50b54bbde3abc6a8883b648de5aee)
---
 src/moveresize.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/moveresize.c b/src/moveresize.c
index e70045d..3e505e3 100644
--- a/src/moveresize.c
+++ b/src/moveresize.c
@@ -1040,6 +1040,11 @@ clientMoveEventFilter (XfwmEvent *event, gpointer data)
             {
                 passdata->move_resized = TRUE;
 
+                if (!screen_info->params->box_move)
+                {
+                    clientSetNetState (c);
+                }
+
                 /* to keep the distance from the edges of the window 
proportional. */
                 passdata->ox = c->x;
                 passdata->mx = frameExtentX (c) + passdata->pxratio * 
frameExtentWidth (c);
@@ -1259,11 +1264,7 @@ clientMove (Client * c, XfwmEventButton *event)
     /* Set window opacity to its original value */
     clientSetOpacity (c, c->opacity, OPACITY_MOVE, 0);
 
-    /* Update state if changed */
-    if (passdata.cancel_flags != c->flags)
-    {
-        clientSetNetState (c);
-    }
+    clientSetNetState (c);
 
     wc.x = c->x;
     wc.y = c->y;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to