app: sent the mouse events to other window when there is a modal window

In one app thread, we can have multiple window trees. If one tree is
modaled, there is no reason to discard events to other windows.

This partly resolves the issue #39 on GitHub.