[Xfce4-commits] [xfce/xfwm4] 06/07: Unset RESTORE_SIZE_POS on resize.

noreply at xfce.org noreply at xfce.org
Tue Jan 20 22:32:01 CET 2015


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 <cavalier at 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.


More information about the Xfce4-commits mailing list