mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
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)
This commit is contained in:

committed by
Havoc Pennington

parent
1a5b861dff
commit
02a8fb4a37
4
src/ui.c
4
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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user