From 59756b8d77dfbd0948d7e4d3349477173aa2728a Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Tue, 2 Jan 2018 11:55:29 +0100 Subject: compositor: don't try to paint window that is not viewable, fix #324 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on metacity commit: a0b8c85c4c0cfb9a378d7c5554af15fdd7703155 From: Alberts Muktupāvels --- src/compositor/compositor-xrender.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c index 8b0c43e5..74703e67 100644 --- a/src/compositor/compositor-xrender.c +++ b/src/compositor/compositor-xrender.c @@ -1266,6 +1266,9 @@ paint_windows (MetaScreen *screen, continue; } + if (cw->attrs.map_state != IsViewable) + continue; + #if 0 if ((cw->attrs.x + cw->attrs.width < 1) || (cw->attrs.y + cw->attrs.height < 1) || -- cgit v1.2.1