Fix pinned widgets receiving mouse clicks in gamemode (Fixes #1686)