Take desktop panels into account when sizing frames so they fit on the screen.