After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770011 - Pause the runner when the window doesn't have focus
Pause the runner when the window doesn't have focus
Status: RESOLVED FIXED
Product: gnome-games
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2016-08-16 22:06 UTC by Adrien Plazas
Modified: 2016-08-17 20:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ui: Pause game when the window is unfocused (1.28 KB, patch)
2016-08-17 20:35 UTC, Adrien Plazas
committed Details | Review

Description Adrien Plazas 2016-08-16 22:06:26 UTC
This would allow to save battery and prevent the player to loose control of the game if the window losses focus for any reason.
Comment 1 Adrien Plazas 2016-08-17 20:35:03 UTC
Created attachment 333528 [details] [review]
ui: Pause game when the window is unfocused

Also resume it when the window gets the focus back.

This avoids the player to loose control over the game.
Comment 2 Adrien Plazas 2016-08-17 20:36:30 UTC
Attachment 333528 [details] pushed as 75ce644 - ui: Pause game when the window is unfocused