[Xfce4-commits] [xfce/xfwm4] 01/01: compositor: Shaded windows have no height
noreply at xfce.org
noreply at xfce.org
Mon Dec 3 09:32:51 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 m a s t e r
in repository xfce/xfwm4.
commit 8cd915228bafb9792fd5d3e7e778db8ed51578d1
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>
---
src/compositor.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/compositor.c b/src/compositor.c
index 500f68f..8126455 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -3752,6 +3752,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