diff options
author | Jan Niklas Hasse <[email protected]> | 2018-01-02 11:55:29 +0100 |
---|---|---|
committer | Jan Niklas Hasse <[email protected]> | 2018-01-02 11:55:41 +0100 |
commit | 59756b8d77dfbd0948d7e4d3349477173aa2728a (patch) | |
tree | 1a443f8d5e3a78d25bdba81009a390ff2f8b7836 /src/compositor/compositor-xrender.c | |
parent | 658399850779e4a3f91cf1f96ddc37e628aaa4ba (diff) | |
download | marco-59756b8d77dfbd0948d7e4d3349477173aa2728a.tar.bz2 marco-59756b8d77dfbd0948d7e4d3349477173aa2728a.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]>
Diffstat (limited to 'src/compositor/compositor-xrender.c')
-rw-r--r-- | src/compositor/compositor-xrender.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) || |