Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This has been bothering me a lot. When closing a window, the system does not give the focus to the previously focused window. Let me give an example.

Right now, I'm working with Google Chrome and it is focused (active). I decide to open up nautilus and check a file. When I'm done with nautilus, when I close it, it should automatically return the focus to Google Chrome (previously focused window), but it doesn't. No window is focused, not even desktop.

Is there a solution for this problem?

note: I'm using Unity 2D, but I don't think this is the reason.

share|improve this question
    
What has focus when you close Chrome? –  Evan Carroll Jan 31 '13 at 17:38
    
Hmm. I'm using Lubuntu. To test, I'm responding via this comment using Chrome but I also have a text editor (Leafpad) open. I'm going to alt-tab from Chrome to Leafpad, type something into Leafpad, save it, and then close Leafpad (with Alt+spacebar, C). I expect that Chrome will be the active window and that I can just continue typing this comment. And that is just what happens. –  user25656 Jan 31 '13 at 17:41
    
@EvanCarroll When I close the secondly opened program, nothing has focus. I guess the desktop does. Any ideas? –  Amin Jan 31 '13 at 17:52
    
@vasa1 So are you saying that yours works correctly? :/ –  Amin Jan 31 '13 at 17:52
1  
This is certainly a bug. It didn't always do this, but it does hurt the efficiency of using Ubuntu. I have this problem with 13.04. haven't found a solution yet. –  henry74 Jul 23 '13 at 14:46

2 Answers 2

up vote 1 down vote accepted

Ok I found out what the problem was.

I was using "Glx-Dock / Cairo-Dock" and it was stealing the focus on every window close. I couldn't find a solution or even a single bug report on the net, so I just uninstalled it and now I'm fine.

And BTW, thanks for the down votes. I'm wondering how ridiculous my problem was to receive down votes :)

share|improve this answer

The better way is to use compiz "Window Rules" to avoid focusing cairo-dock: http://ubuntuforums.org/showthread.php?t=1339646&p=9565169#post9565169

share|improve this answer
    
Could you provide some specific details and steps for the OP to follow in your answer besides a link? –  Kevin Bowen Apr 10 '13 at 6:53

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.