[metacity/gnome-3-18] 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-18] compositor: don't try to paint window that is not viewable
- Date: Sat, 18 Jun 2016 15:30:45 +0000 (UTC)
commit 3f74985e02c0ab59b4bd64379a959d4b2532b88c
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 ecb97d2..4757ff0 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]