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

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

commit 82e440919049726564decda1fafb3480f890bc78
Author: Peter de Ridder <caval...@the-cavalry.org>
Date:   Tue Jan 20 22:30:00 2015 +0100

    Unset RESTORE_SIZE_POS on resize.
---
 src/moveresize.c |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/moveresize.c b/src/moveresize.c
index 95fd734..615d657 100644
--- a/src/moveresize.c
+++ b/src/moveresize.c
@@ -1816,10 +1816,16 @@ clientResize (Client * c, int handle, XEvent * ev)
     /* Set window opacity to its original value */
     clientSetOpacity (c, c->opacity, OPACITY_RESIZE, 0);
 
-    if (FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED) &&
-        ((w_orig != c->width) || (h_orig != c->height)))
+    if ((w_orig != c->width) || (h_orig != c->height))
     {
-        clientRemoveMaximizeFlag (c);
+        if (FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED))
+        {
+            clientRemoveMaximizeFlag (c);
+        }
+        if (FLAG_TEST (c->flags, CLIENT_FLAG_RESTORE_SIZE_POS))
+        {
+            FLAG_UNSET (c->flags, CLIENT_FLAG_RESTORE_SIZE_POS);
+        }
     }
 
 #ifdef HAVE_XSYNC

-- 
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