[metacity/gnome-3-20] compositor: don't try to paint window that is not viewable
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/gnome-3-20] compositor: don't try to paint window that is not viewable
- Date: Sat, 18 Jun 2016 15:30:27 +0000 (UTC)
commit 95a568e6ecf9bd6acb6900daa9703916f053a80a
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Jun 18 18:24:00 2016 +0300
compositor: don't try to paint window that is not viewable
https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/1592953
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 ad4ae65..285bce4 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -1530,6 +1530,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) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]