Make the mouse handler respect linger mode instead of assuming false.

Fixes bug #21450, restoring functionality lost in commit
7e46df919167c6906d7a782b8f77104444cdee5a.
Remove vestiges of an earlier attempt to fix bug #21450.