Update the mask after moving the panel
now the panel mask is the intersection between screen geometry and panel geometry, so the mask must be updated only after setting the new geometry, or a whole section of the panel will be cut out of the input mask, not receiving any mouse input