[olpc-software] XRes Improvements

Matthew Allum mallum at openedhand.com
Tue Mar 14 15:45:58 UTC 2006


Hi;

Last night I got a bit inspired by the comments re 'Server side pixmap
usage' on http://fedoraproject.org/wiki/OLPC/Optimization and the
limitation of XRes not being able to dump pixmap ID's for a client.

http://o-hand.com/~mallum/xres/ contains patches for kdrive, ResourceExt
and XRes ( all against f.d.o CVS ) which extend XRes with a new call -
XResQueryClientPixmaps (). This gets all pixmap IDs for a connected
client. 

See xlspixmaps.c in above dir for a simple example of usage. Also,
gxlspixmaps.c which rather hackerly displays discovered pixmaps -
http://o-hand.com/~mallum/xres/gxlspixmaps.png is a screenshot showing
firefox's pixmaps. This is pretty interesting especially whats left when
you clear browser cache.

Also there is some other suckage in current XRes, namely inaccurate
pixmap memory usage reporting, shared pixmaps and window background
pixmaps getting ignored, see
https://bugs.freedesktop.org/show_bug.cgi?id=2029 for more info. 

Hope all this is some use. Would be interested if any issues are
discovered.

Regards;

  -- Matthew Allum




More information about the olpc-software mailing list