'Adjust offsets of clients within current screen'

def to_screen(self, group, new_screen):

    for win in self.find_clients(group):
        if win.maximized:
            win.maximized = True
        elif win.fullscreen:
            win.fullscreen = True
        else:
            try:
                new_x = (new_screen.x + win.float_x)
                new_y = (new_screen.y + win.float_y)
            except AttributeError:
                pass
            else:
                new_x = min(new_x, ((new_screen.x + new_screen.width) - win.width))
                new_x = max(new_x, new_screen.x)
                new_y = min(new_y, ((new_screen.y + new_screen.height) - win.height))
                new_y = max(new_y, new_screen.y)
                win.x = new_x
                win.y = new_y
        win.group = new_screen.group
