constraints: Fix titlebars going off the bottom
The "current" rect includes the frame, so in order to keep the titlebar on screen, window movement must be restricted to at most (height - titlebar_height) past the work area bottom.
The "current" rect includes the frame, so in order to keep the titlebar on screen, window movement must be restricted to at most (height - titlebar_height) past the work area bottom.