mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
same fix as libwnck, avoid using cmap with the wrong depth
2002-04-13 Havoc Pennington <hp@pobox.com> * src/ui.c (get_cmap): same fix as libwnck, avoid using cmap with the wrong depth
This commit is contained in:
parent
d02060e201
commit
206cff1547
@ -1,3 +1,8 @@
|
|||||||
|
2002-04-13 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* src/ui.c (get_cmap): same fix as libwnck, avoid using cmap
|
||||||
|
with the wrong depth
|
||||||
|
|
||||||
2002-04-13 Havoc Pennington <hp@pobox.com>
|
2002-04-13 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* src/delete.c: new file containing all the
|
* src/delete.c: new file containing all the
|
||||||
|
9
src/ui.c
9
src/ui.c
@ -374,6 +374,15 @@ get_cmap (GdkPixmap *pixmap)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Be sure we aren't going to blow up due to visual mismatch */
|
||||||
|
if (cmap &&
|
||||||
|
(gdk_colormap_get_visual (cmap)->depth !=
|
||||||
|
gdk_drawable_get_depth (pixmap)))
|
||||||
|
{
|
||||||
|
cmap = NULL;
|
||||||
|
meta_verbose ("Switching back to NULL cmap because of depth mismatch\n");
|
||||||
|
}
|
||||||
|
|
||||||
return cmap;
|
return cmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user