[Xfce4-commits] [xfce/xfwm4] 02/07: Un-shade windows when fill is invoked

noreply at xfce.org noreply at xfce.org
Tue Aug 25 19:02:07 CEST 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 c33286d357030944bd1a760b424fe3ae065b8808
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Tue Aug 25 16:47:30 2015 +0200

    Un-shade windows when fill is invoked
    
    Bug: 7549
    
    Still thinking this is a corner case, but oh well...
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/client.c |    5 +++++
 src/client.h |    4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/client.c b/src/client.c
index 9524211..f0538a2 100644
--- a/src/client.c
+++ b/src/client.c
@@ -3394,6 +3394,11 @@ clientToggleMaximized (Client *c, int mode, gboolean restore_position)
     clientSetNetActions (c);
     if (restore_position && FLAG_TEST (c->xfwm_flags, XFWM_FLAG_MANAGED))
     {
+        if (FLAG_TEST (c->flags, CLIENT_FLAG_SHADED))
+        {
+            /* It's a shame, we are configuring the same client twice in a row */
+            clientUnshade (c);
+        }
         clientConfigure (c, &wc, CWWidth | CWHeight | CWX | CWY, CFG_FORCE_REDRAW);
     }
     /* Do not update the state while moving/resizing, CSD windows may resize */
diff --git a/src/client.h b/src/client.h
index 7aa93f3..aa2b1e0 100644
--- a/src/client.h
+++ b/src/client.h
@@ -229,7 +229,9 @@
                                          !FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN))
 #define CLIENT_CAN_FILL_WINDOW(c)       (FLAG_TEST(c->xfwm_flags, XFWM_FLAG_HAS_RESIZE | \
                                                                   XFWM_FLAG_IS_RESIZABLE) && \
-                                         !FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN | CLIENT_FLAG_MAXIMIZED))
+                                         !FLAG_TEST (c->flags, CLIENT_FLAG_FULLSCREEN | \
+                                                               CLIENT_FLAG_MAXIMIZED | \
+                                                               CLIENT_FLAG_SHADED))
 #define CLIENT_CAN_TILE_WINDOW(c)       (CLIENT_CAN_MAXIMIZE_WINDOW(c) && \
                                          !FLAG_TEST (c->flags, CLIENT_FLAG_SHADED) && \
                                          (c->type & WINDOW_NORMAL))

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


More information about the Xfce4-commits mailing list