inputmethod: Ensure InputPanelV1Window is always within the screen
Currently when input panel is using overlay mode and the cursor rectangle is below or above the screen area, the input panel may be placed off the screen. The change ensure it is always placed within the screen area using similar math like xdg_popup's slide_y constrain.
Edited by Xuetian Weng