Mouse event actions accepted when window doesn't have focus
I alluded to this in another ticket ( http://www.adom.de/forums/project.php?issueid=4010 ), but I wanted to break this out into a separate ticket as it is somewhat of a different issue with more serious consequences. If I have focus on another window, and click on ADOM to gain focus back, the mouse event will be accepted by the game and processed. If the window does not have focus, it should not accept any events (keyboard events are naturally impossible without focus) until focus is regained. I see two potential options depending on how the code works - either the mouse event is ignored if it occurs within a delta of the focus event, or a status(Alt+Q) or pause screen is displayed on focus out and automatically removed on focus in.
I just died in Tomb of High Kings while confused because I clicked empty black space near the top of the window to regain focus and it walked me off my bridge.