def get_selection_owner ( self , selection ) : r = request . GetSelectionOwner ( display = self . display , selection = selection ) return r . owner
python function to get it owner
Return the window that owns selection ( an atom ) or X . NONE if there is no owner for the selection . Can raise BadAtom .
def get_selection_owner(self, selection):
        """Return the window that owns selection (an atom), or X.NONE if
        there is no owner for the selection. Can raise BadAtom."""
        r = request.GetSelectionOwner(display = self.display,
                                      selection = selection)
        return r.owner