static void moveFrameAround(Window w) { if (w == null) ret; pcall { Rect r = randomRect(w.getWidth(), w.getHeight(), toRect(maxWindowBounds())); if (r != null) w.setLocation(r.x, r.y); } }