Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#1025 closed defect (fixed)

[PATCH] Add config option to toggle pause on window focus loss

Reported by: historic_bruno Owned by: Mark Cho
Priority: Nice to Have Milestone: Alpha 8
Component: Core engine Keywords: simple
Cc: Patch:

Description

If you're playing a single player game and the window loses focus, the game will be paused until you return, which is OK but not everyone wants this behavior. It seems trivial to fix this by adding a new option to default.cfg such as

pauseonfocusloss = true

Attachments (1)

0AD_PauseOnFocusLoss.patch (2.6 KB ) - added by Mark Cho 12 years ago.

Download all attachments as: .zip

Change History (6)

by Mark Cho, 12 years ago

Attachment: 0AD_PauseOnFocusLoss.patch added

comment:1 by Mark Cho, 12 years ago

Keywords: review added
Milestone: BacklogAlpha 8
Owner: set to Mark Cho
Summary: Add config option to toggle pause on window focus loss[PATCH] Add config option to toggle pause on window focus loss

I've attached the patch which implements the config options.

Please review the diff.

Thanks

comment:2 by Mark Cho, 12 years ago

Status: newassigned

comment:3 by Philip Taylor, 12 years ago

Thanks, looks good. I just changed the default to false so it keeps the current behaviour, because I think that's probably more useful for players (and developers can override it in their local.cfg).

comment:4 by philip, 12 years ago

Resolution: fixed
Status: assignedclosed

(In [10609]) Fix #1025 (add config option to toggle pause on window focus loss), based on patch by markcho.

comment:5 by sanderd17, 8 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.