summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Niklas Hasse <[email protected]>2018-01-02 11:55:29 +0100
committermonsta <[email protected]>2018-03-02 15:18:32 +0300
commit0dd9689577c69db74f1c72437afe0c06cf6766a0 (patch)
treec2b996c507ddd1848f5803b5b7acabc5be6de111
parent36f7928088b7919b8e241c163ed8f701c5342b85 (diff)
downloadmarco-0dd9689577c69db74f1c72437afe0c06cf6766a0.tar.bz2
marco-0dd9689577c69db74f1c72437afe0c06cf6766a0.tar.xz
compositor: don't try to paint window that is not viewable, fix #324
Based on metacity commit: a0b8c85c4c0cfb9a378d7c5554af15fdd7703155 From: Alberts Muktupāvels <[email protected]>
-rw-r--r--src/compositor/compositor-xrender.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c
index 1679f06e..2bdf9366 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -1161,6 +1161,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) ||