code: def setActiveWindow(self, win):
          
          self._setProperty('_NET_ACTIVE_WINDOW', [1, X.CurrentTime, win.id],
                            win)
docs: Set the given window active (property _NET_ACTIVE_WINDOW)
  
          :param win: the window object