[mutter] compositor: Remove unused code fetching _XSETROOT_ID
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] compositor: Remove unused code fetching _XSETROOT_ID
- Date: Tue, 8 Jan 2013 21:15:14 +0000 (UTC)
commit 66d37e06baf9029ddeb5e2be9ad3bc90be4af102
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jan 8 14:18:56 2013 -0500
compositor: Remove unused code fetching _XSETROOT_ID
We don't use this atom anywhere, so don't bother fetching it.
https://bugzilla.gnome.org/show_bug.cgi?id=691363
src/compositor/compositor-private.h | 1 -
src/compositor/compositor.c | 4 +---
2 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/compositor/compositor-private.h b/src/compositor/compositor-private.h
index e7eadf8..125ffbf 100644
--- a/src/compositor/compositor-private.h
+++ b/src/compositor/compositor-private.h
@@ -18,7 +18,6 @@ struct _MetaCompositor
MetaDisplay *display;
Atom atom_x_root_pixmap;
- Atom atom_x_set_root;
Atom atom_net_wm_window_opacity;
guint repaint_func_id;
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index 5bd14b8..105464f 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -1270,7 +1270,6 @@ meta_compositor_new (MetaDisplay *display)
{
char *atom_names[] = {
"_XROOTPMAP_ID",
- "_XSETROOT_ID",
"_NET_WM_WINDOW_OPACITY",
};
Atom atoms[G_N_ELEMENTS(atom_names)];
@@ -1297,8 +1296,7 @@ meta_compositor_new (MetaDisplay *display)
compositor);
compositor->atom_x_root_pixmap = atoms[0];
- compositor->atom_x_set_root = atoms[1];
- compositor->atom_net_wm_window_opacity = atoms[2];
+ compositor->atom_net_wm_window_opacity = atoms[1];
compositor->repaint_func_id = clutter_threads_add_repaint_func (meta_repaint_func,
compositor,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]