summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-11-15 04:10:54 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-11-15 04:10:54 +0000
commit02a8fb4a377fc07210715079770d1397bf53e6d8 (patch)
tree2c5edc1e40638517320dbadadc9646316d50000a
parent1a5b861dff85df94811e5d04914b23fdd29e8f18 (diff)
downloadmetacity-02a8fb4a377fc07210715079770d1397bf53e6d8.tar.gz
fix a multihead safety thing (use proper system colormap for the
2002-11-13 Havoc Pennington <hp@pobox.com> * src/ui.c (get_cmap): fix a multihead safety thing (use proper system colormap for the drawable's screen)
-rw-r--r--ChangeLog5
-rw-r--r--src/ui.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bcd71544..2b85fe44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-13 Havoc Pennington <hp@pobox.com>
+
+ * src/ui.c (get_cmap): fix a multihead safety thing (use proper
+ system colormap for the drawable's screen)
+
Thu Nov 14 17:30:10 2002 Jonathan Blandford <jrb@gnome.org>
* src/Makefile.am (libmetacityinclude_HEADERS): include common.h.
diff --git a/src/ui.c b/src/ui.c
index 5074d6b0..13542e99 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -410,7 +410,11 @@ get_cmap (GdkPixmap *pixmap)
else
{
meta_verbose ("Using system cmap to snapshot pixmap\n");
+#ifdef HAVE_GTK_MULTIHEAD
+ cmap = gdk_screen_get_system_colormap (gdk_drawable_get_screen (pixmap));
+#else
cmap = gdk_colormap_get_system ();
+#endif
g_object_ref (G_OBJECT (cmap));
}
}