'Return whether the window is displayed in some way (but not necessarily
visible on the current screen).'

def displayed(self):

    d = _xwininfo(self.identifier, 'stats')
    return (d['Map    State'] != 'IsUnviewable')
