Cascading Windows Jun 2026
offset_x, offset_y = 30, 30 start_x, start_y = 0, 0 screen_width, screen_height = gw.getActiveWindow().screen.width, gw.getActiveWindow().screen.height
The Cascade command arranges all non-minimized top-level windows in an overlapping diagonal pattern. The system calculates the cascade offset based on the average title bar height and the current screen resolution. Each window is placed such that its title bar is fully visible and the window’s client area may be partially obscured. cascading windows