code: def setMoveResizeWindow(self, win, gravity=0, x=None, y=None, w=None,
                              h=None):
          
          # indicate source (application)
          gravity_flags = gravity | 0b0000100000000000
          if x is None:
              x = 0
          else:
              gravity_flags = gravity_flags | 0b0000010000000000
          if y is None:
              y = 0
          else:
              gravity_flags = gravity_flags | 0b0000001000000000
          if w is None:
              w = 0
          else:
              gravity_flags = gravity_flags | 0b0000000100000000
          if h is None:
              h = 0
          else:
              gravity_flags = gravity_flags | 0b0000000010000000
          self._setProperty('_NET_MOVERESIZE_WINDOW',
                            [gravity_flags, x, y, w, h], win)
docs: Set the property _NET_MOVERESIZE_WINDOW to move or resize the given
          window. Flags are automatically calculated if x, y, w or h are defined.
  
          :param win: the window object
          :param gravity: gravity (one of the Xlib.X.*Gravity constant or 0)
          :param x: int or None
          :param y: int or None
          :param w: int or None
          :param h: int or None