[Xfce4-commits] [xfce/xfwm4] 10/18: compositor: Don't draw shadow on maximized windows

noreply at xfce.org noreply at xfce.org
Sat Apr 11 17:58:46 CEST 2020


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       x   f   c   e   -   4   .   1   4   
   in repository xfce/xfwm4.

commit d2b0e3cc7514ab1ed1a84044b47d6dd4865036c6
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Wed Jan 15 22:03:14 2020 +0100

    compositor: Don't draw shadow on maximized windows
    
    Bug: 16381
    
    This can lead to misleading situations, e.g. if you have >1 display and
    the edge of the next display is blurry/dark for no obvious reason.
    
    (cherry picked from commit a74651cb53aa0f0cebfea1bd1fd2d361fdcd789f)
---
 src/compositor.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compositor.c b/src/compositor.c
index c06427e..8aa9991 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -91,6 +91,7 @@
                                            (cw->attr.height + 2 * cw->attr.border_width >= cw->screen_info->height))
 #define WIN_IS_SHAPED(cw)               ((WIN_HAS_CLIENT(cw) && FLAG_TEST (cw->c->flags, CLIENT_FLAG_HAS_SHAPE)) || \
                                            (WIN_IS_OVERRIDE(cw) && (cw->shaped)))
+#define WIN_IS_MAXIMIZED(cw)            (WIN_HAS_CLIENT(cw) && FLAG_TEST_ALL (cw->c->flags, CLIENT_FLAG_MAXIMIZED))
 #define WIN_IS_VIEWABLE(cw)             (cw->viewable)
 #define WIN_HAS_DAMAGE(cw)              (cw->damage)
 #define WIN_IS_VISIBLE(cw)              (WIN_IS_VIEWABLE(cw) && WIN_HAS_DAMAGE(cw))
@@ -1768,6 +1769,7 @@ win_extents (CWindow *cw)
               !WIN_IS_OVERRIDE(cw) &&
               !WIN_NO_SHADOW(cw) &&
               !WIN_IS_DOCK(cw) &&
+              !WIN_IS_MAXIMIZED(cw) &&
               (WIN_HAS_FRAME(cw) || !(WIN_IS_ARGB(cw) || WIN_IS_SHAPED(cw)))) ||
           (screen_info->params->show_dock_shadow &&
               WIN_IS_DOCK(cw) &&

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


More information about the Xfce4-commits mailing list