Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

When I press Ctrl+Alt+Esc or Ctrl+Shift+Esc the game loses focus, but then the whole PC is unusable and I need to restart the PC to regain control

How do I prevent the computer from locking up (let the player control their PC) when a full screen Unity game loses focus?

share|improve this question
    
To clarify, a game you're making renders the computer unusable when it loses focus? And considering you have to press Ctrl+Shift+Esc, it must be a fullscreen window, right? –  Icy Defiance Aug 21 at 15:00
    
Yes. It's a fullscreen window –  Samurai Fox Aug 21 at 15:03
    
Okay, judging from the tag, you're using Unity. What version of Unity are you using? –  Icy Defiance Aug 21 at 15:20
3  
Isn't this normally done via alt+tab or the windows key? –  user2813274 Aug 21 at 15:22
    
@user2813274 Anything that gives focus to something other than the game will work, and to the game they all work in the same way, so that shouldn't be relevant to the question. –  Icy Defiance Aug 21 at 15:26

1 Answer 1

I just tested this myself and confirmed this is a bug with Unity. When a full-screen Unity game loses focus, it still intercepts all input, so any clicks just give focus back to the game. (Without making it reappear, strangely enough.)

This issue was also noted by GG67 in a comment on this bug report, followed by CLEROTH saying he doesn't notice the issue in 4.5.3p1, so you should try updating and see if that fixes anything.

And if updating to 4.5.3p1 or beyond does not fix your problem, you should then report the bug by following this process.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.