VirtualKeyboard: never leave the desktop input panel unmasked
In desktop mode the input panel is a transparent, always on top window
covering the available geometry of the screen, and the input region mask
is what keeps it from consuming input outside of the keyboard.
updateInputRegion() returned without touching the mask when there was no
keyboard rectangle, which is the case before the panel reports its
geometry for the first time, and stays the case if it never does. An
unmasked window swallows all mouse and touch input on the area it
covers, leaving the application unusable.
Mask the window to a region outside of it instead. An empty QRegion
cannot be used for this, because the platform plugins reset the mask
when they are given one.
Task-number: QTBUG-146100
Change-Id: Ib298c2290f5119a750136376c664b2ea74b88885
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>