code: def setWmState(self, win, action, state, state2=0):
          
          if type(state) != int:
              state = self.display.get_atom(state, 1)
          if type(state2) != int:
              state2 = self.display.get_atom(state2, 1)
          self._setProperty('_NET_WM_STATE', [action, state, state2, 1], win)
docs: Set/unset one or two state(s) for the given window (property
          _NET_WM_STATE).
  
          :param win: the window object
          :param action: 0 to remove, 1 to add or 2 to toggle state(s)
          :param state: a state
          :type state: int or str (see :attr:`NET_WM_STATES`)
          :param state2: a state or 0
          :type state2: int or str (see :attr:`NET_WM_STATES`)