def show(self):
        """
        Like WindowVisibilityToggler.show, but before showing the window,
        its floating x, y, width and height is set.
        """
        if (not self.visible) or (not self.shown):
            # SET GEOMETRY
            win = self.window
            screen = win.qtile.current_screen
            # calculate windows floating position and width/height
            # these may differ for screens, and thus always recalculated.
            x = int(screen.dx + self.x * screen.dwidth)
            y = int(screen.dy + self.y * screen.dheight)
            win.float_x = x
            win.float_y = y
            width = int(screen.dwidth * self.width) - 2 * self.border_width
            height = int(screen.dheight * self.height) - 2 * self.border_width
            win.place(x, y, width, height, self.border_width, win.bordercolor, respect_hints=True)
            # Toggle the dropdown
            WindowVisibilityToggler.show(self)

        Like WindowVisibilityToggler.show, but before showing the window,
        its floating x, y, width and height is set.
        
libqtile/scratchpad.py