Skip to content

Commit

Permalink
compositor: don't try to paint window that is not viewable, fix #324
Browse files Browse the repository at this point in the history
Based on metacity commit: a0b8c85c4c0cfb9a378d7c5554af15fdd7703155
From: Alberts Muktupāvels <alberts.muktupavels@gmail.com>
  • Loading branch information
jhasse committed Jan 2, 2018
1 parent 6583998 commit 59756b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compositor/compositor-xrender.c
Expand Up @@ -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) ||
Expand Down

0 comments on commit 59756b8

Please sign in to comment.