Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This might be related to this question.

I am Using Ubuntu 13.04 and Eclipse Juno Service Release 2.

I use Eclipse with some Eclipse's Views(panes) detached from the main window, because I have two monitors.

However, in that environment, the main window always lose its focus after switching Ubuntu's workspace. This is really annoying because I have to change the focus every time before I start coding.

This is how to reproduce the problem:

  1. Open Eclipse, detach a pane (Project Explorer might be fine) from the main window, and focus on the main window.
  2. Switch Ubuntu's (not Eclipse's) workspace.
  3. Switch again back to the workspace where Eclipse exists.
  4. Now the detached pane gets the focus, not the main window.

Does anyone have a workaround for this?

share|improve this question
Some remarks: (1) Same 'problem' with the GIMP program where Brushes and Tool Options are in separate windows. (2) The 'problem' is not really related to Ubuntu 13.04. For the moment I'm running Openbox as a windowmanager, and also there the 'problem' persists. (3) I guess the 'problem' is related to a lower level, I mean the X windowing system – user85164 May 9 '13 at 23:02
I have to add that this issue is called 'focus stealing'. Different windowmanagers use different methods to tackle the problem. It all depends on how the running application identifies the new window to the window manager. – user85164 May 9 '13 at 23:19
As you say, GIMP also has the same problem in my environment. This seems to be because detached panes are treated as Dialog type in X. If they were really dialogs, the behavior might be reasonable. Compiz's website told me how to inspect each window's attributes, which is quite useful to understand this phenomenon. – Akihiro HARAI May 10 '13 at 2:01
Some types of "focus stealing" problems can be solved using CompizConfig Settings Manager. However, my case seems to be different from them. – Akihiro HARAI May 10 '13 at 10:29

Assuming you are working with two screens.. One (slightly weird) solution to avoid undocking any panes is to stretch the window across two screens and keep the windows docked.

share|improve this answer

Your Answer


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.