diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-07-30 23:02:15 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-07-30 23:02:15 -0400 |
commit | d11d7f78a0d76ef3fdffb73636f630636e9f3a62 (patch) | |
tree | fc90754448406f85fb8f5e30885165254b6a354f | |
parent | 475867bb3359897210d611651f487bfd81a23661 (diff) |
Only use rgba visual if can composite
-rwxr-xr-x | slippy.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |