The problem only appears, if there is the following line Option "Composite" "Enable" in file /etc/X11/xorg.conf. At first any djvu file is shown properly, but some gui elements such as menus and the icon in the upper left corner have incorrect colours. Also I can scroll any page down. http://img128.imageshack.us/img128/3640/snapshot11ar.png http://img98.imageshack.us/img98/3893/snapshot29sn.png However, trying to scroll a page up damages the image. http://img268.imageshack.us/img268/5765/snapshot39qo.png http://img113.imageshack.us/img113/3041/snapshot45vu.png After that only the part of the page out of the current visible domain can be correctly shown by scrolling down. http://img211.imageshack.us/img211/1199/snapshot52zw.png New request for the page restores the proper image. This problem appears with all stable djvu version up to 3.5.17. ddjvu works properly, so I think that it's a gui only problem.
Some additional information. 1. When I open menus in the djview window, I get some messages like these: QT Warning: X Error: BadMatch (invalid parameter attributes) 8 Major opcode: 62 Minor opcode: 0 Resource id: 0x2800043 QT Warning: X Error: BadMatch (invalid parameter attributes) 8 Major opcode: 62 Minor opcode: 0 Resource id: 0x28000ad QT Warning: X Error: BadMatch (invalid parameter attributes) 8 Major opcode: 62 Minor opcode: 0 Resource id: 0x28000ae QT Warning: X Error: BadMatch (invalid parameter attributes) 8 Major opcode: 62 Minor opcode: 0 Resource id: 0x28000b8 2. There is a workaround for the problem. $ XLIB_SKIP_ARGB_VISUALS=1 djview works properly with "Composite" enabled.
This bug is very similar to: http://sourceforge.net/forum/forum.php?thread_id=1607327&forum_id=103285) And it was reported that this is fixed in currently not in the tree djvu-3.5.19. I'll commit it ASAP. :)
This should be fixed in 3.5.19 which is now in portage. Please, test and reopen if the problem persist.