@classmethod
def _fix_windows(cls, maxw, maxh):
    """
        Fixes all windows for which width or height is specified as 'max'.
        """
    if not cls.WINDOWS:
        return
    for win in cls.WINDOWS:
        if win.WIDTH == 'max':
            win.WIDTH = maxw - win.X
        if win.HEIGHT == 'max':
            win.HEIGHT = maxh - win.Y
