[metacity] xrender: use mapped state from MetaWindow
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] xrender: use mapped state from MetaWindow
- Date: Wed, 15 Mar 2017 12:08:21 +0000 (UTC)
commit 433bf689997ebf10565ed30f0126919d2bf37555
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Mar 15 14:01:47 2017 +0200
xrender: use mapped state from MetaWindow
src/compositor/meta-compositor-xrender.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 4f66846..4f56268 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -1416,7 +1416,7 @@ paint_windows (MetaCompositorXRender *xrender,
continue;
}
- if (cw->attrs.map_state != IsViewable)
+ if (!cw->window->mapped)
continue;
#if 0
@@ -1964,7 +1964,6 @@ map_win (MetaCompositorXRender *xrender,
cw->shaded.client_region = None;
}
- cw->attrs.map_state = IsViewable;
cw->damaged = FALSE;
}
@@ -1979,7 +1978,6 @@ unmap_win (MetaCompositorXRender *xrender,
return;
}
- cw->attrs.map_state = IsUnmapped;
cw->damaged = FALSE;
if (cw->extents != None)
@@ -2186,7 +2184,7 @@ add_win (MetaCompositorXRender *xrender,
xrender->windows = g_list_prepend (xrender->windows, cw);
g_hash_table_insert (xrender->windows_by_xid, (gpointer) xwindow, cw);
- if (cw->attrs.map_state == IsViewable)
+ if (cw->window->mapped)
map_win (xrender, xwindow);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]