summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2007-07-30 23:02:15 -0400
committerBehdad Esfahbod <behdad@behdad.org>2007-07-30 23:02:15 -0400
commitd11d7f78a0d76ef3fdffb73636f630636e9f3a62 (patch)
treefc90754448406f85fb8f5e30885165254b6a354f
parent475867bb3359897210d611651f487bfd81a23661 (diff)
Only use rgba visual if can composite
-rwxr-xr-xslippy.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/slippy.py b/slippy.py
index a939ef5..59845ca 100755
--- a/slippy.py
+++ b/slippy.py
@@ -43,9 +43,7 @@ class ViewerGTK (Viewer):
window = gtk.Window()
screen = window.get_screen()
colormap = screen.get_rgba_colormap()
- # TODO: we should check screen/window.is_composited() here
- # too, but those return False all the time for me
- if colormap:
+ if window.is_composited() and colormap:
window.set_colormap (colormap)
# caching background only speeds up rendering for
# color-only surfaces