[Xfce4-commits] [xfce/xfwm4] 01/01: compositor: Shaded windows have no height

noreply at xfce.org noreply at xfce.org
Mon Dec 3 09:33:28 CET 2018


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   2   
   in repository xfce/xfwm4.

commit 600cb96c7eed28529fc8d5d0383d58070cb30957
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Sat Dec 1 21:12:58 2018 +0100

    compositor: Shaded windows have no height
    
    Bug: 14899
    
    Trying to get the pixmap  with a height of zero will lead to an XError
    and further trouble down the line.
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
    (cherry picked from commit 8cd915228bafb9792fd5d3e7e778db8ed51578d1)
---
 src/compositor.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/compositor.c b/src/compositor.c
index 5a7b7e0..fca15ae 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -2956,6 +2956,12 @@ compositorScaleWindowPixmap (CWindow *cw, guint *width, guint *height)
     }
     src_size = MAX (src_w, src_h);
 
+    /* Shaped windows have no height */
+    if (src_w == 0 || src_h == 0)
+    {
+        return None;
+    }
+
     /*/
      * Caller may pass either NULL or 0.
      * If 0, we return the actual unscalled size.

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


More information about the Xfce4-commits mailing list