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>
commitb0789cbcc5142cead975f21835655e42a04602a1
parentbe3433f44843205d8270ef735c673d40101be04d
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>
commit timeWed, 12 Aug 2026 10:39:13 +0000