window: Fix get_client_area_rect for the frame rect conversion

Specifically for CSD windows -- this was just absolutely wrong
before. This fixes weird painting and clipping artifacts for
CSD windows.