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

Most of the time when I'm working, I have 4 windows open (editor, browser, mail client, terminal), and I use the multiple virtual desktops feature to put one on each window. So instead of alt-tabbing, I move to a different desktop.

The issue is that when I have them arranged on the desktops correctly and then disconnect my external monitor, they're all moved to the same desktop. When I plug the external monitor back in, then some of them are moved to the external, whereas some are still on the laptop display. Either way, it makes being mobile a very jarring experience.

Is there some way to "fix" or configure this behaviour?

share|improve this question

closed as off topic by Thomas Ward, Kevin Bowen, Seth, Eliah Kagan, vasa1 Mar 26 '13 at 1:16

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

I'm still having the exact same problem on 12.10, and the bug ticket on launchpas doesn't seem to be in progress. Has anyone found a solution to stop this? Of course I can always get my windows back manually after pluging/unpluging the monitor, but it's pretty boring when you plug your laptop twice a day. – ForeverOz Mar 25 '13 at 23:13
This question should instead be filed as a bug report, and as such is off-topic, thanks! Instructions on filing a bug report are here. – Thomas Ward Mar 25 '13 at 23:15
up vote 2 down vote accepted

This has been confirmed as a bug in Compiz and filed here:

I agree it is very tedious. If you have any extra info to add, or to mark the bug as affecting you, use the link above.

share|improve this answer

If you can alt-tab to the window you want to select, you should be able to move it even if you can't see it. Try typing SuperKey+Ctrl+Left or Up, or Right. That moves the window around.

Another thing to try is to alt-tab to the window you want, then press CTRL+ALT+Shift and an arrow. It should move the windows to the desktop you are on. But I think the first solution is more likely.

share|improve this answer
Yeah, that's what I've been using to get them in the right place, but every time I (dis)connect the external monitor, it screws up all the placement. Very frustrating. – nickf May 15 '12 at 10:24
This happens in some Windows and Mac applications too. I'm not sure what component would be to blame. Video Driver, OS, The program, Gnome/Unity... But it's not just an Ubuntu thing, so it must be a fair bit tricky to come up with a consistent solution. – Frantumn May 15 '12 at 12:47
I don't think the video driver would be in charge of window placement... it's clearly something the OS should be in control of. – nickf May 15 '12 at 21:49

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