Fix issue with "Select layer with menu" action
On Windows, the synthesized mouse press event causes the menu to close, so we limit our action to process these synthesized events only, then nothing arrives after them and nothing can close the popup menu.
Reports from KA: https://krita-artists.org/t/krita-5-2-is-released/75820/26 https://krita-artists.org/t/select-layer-from-menu-glitch-with-wacom-in-krita-5-2/75933