def configure(self, client, screen):
        if client is self.focused:
            bc = client.group.qtile.colorPixel(self.border_focus)
        else:
            bc = client.group.qtile.colorPixel(self.border_normal)
        if client.maximized:
            bw = self.max_border_width
        elif client.fullscreen:
            bw = self.fullscreen_border_width
        else:
            bw = self.border_width

        # We definitely have a screen here, so let's be sure we'll float on screen
        try:
            client.float_x
            client.float_y
        except __HOLE__:
            # this window hasn't been placed before, let's put it in a sensible spot
            x = screen.x + client.x % screen.width
            # try to get right edge on screen (without moving the left edge off)
            x = min(x, screen.x - client.width)
            x = max(x, screen.x)
            # then update it's position (`.place()` will take care of `.float_x`)
            client.x = x

            y = screen.y + client.y % screen.height
            y = min(y, screen.y - client.height)
            y = max(y, screen.y)
            client.y = y

        client.place(
            client.x,
            client.y,
            client.width,
            client.height,
            bw,
            bc
        )
        client.unhide()
dataset/ETHPy150Open qtile/qtile/libqtile/layout/floating.py/Floating.configure