GNOME Bugzilla – Bug 621212
pressing print screen deactivates and pauses gnomine before the screenshot is taken
Last modified: 2011-11-13 07:25:02 UTC
Forwarded (but only after dragging my feet and whining about it) from https://bugs.launchpad.net/ubuntu/+source/gnome-games/+bug/27956 Steps to reproduce: 1. Open gnomine and start a game. 2. Press print screen to take a screenshot. Expected results: The minefield appears in the screenshot. Actual results: The minefield does not appear because the game was paused before the screenshot was taken.
Since this is now the right place for it, I'd like to mention that I've noticed gnomine pausing in all of the following situations: * Any hotkey is pressed. * The gnomine window icon is clicked to bring up its window menu. * The gnomine window is moved. This leads me to believe that the focus loss detection is too strict. A quick test with xev shows that windows get a FocusOut event with mode NotifyGrab in these cases. A switch to another window results in a FocusOut with mode NotifyNormal. Perhaps gnomine should ignore the NotifyGrab events.
Disabled the autopausing as it was causing too many problems.