int is_xwindow() { return type==bmXShmImage || type==bmXImage; }
int is_shared() { return type==bmXvShmImage || type==bmXShmImage; }
int is_unshared() { return type==bmXvImage || type==bmXImage; }
int is_xwindow() { return type==bmXShmImage || type==bmXImage; }
int is_shared() { return type==bmXvShmImage || type==bmXShmImage; }
int is_unshared() { return type==bmXvImage || type==bmXImage; }