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

I am new to ubuntu, been using it for about a month now. I created this desktop for myth tv, and so i use a dual monitor configuration(one monitor for watching shows, and one for everything else). But because i dont have the tuner(yet) i am just using hulu desktop and some video files that i already have. The problem is that when i open some applications, such as firefox, they open on the monitor that is playing the video. Sometimes they even open up behind the video application. Is there a way to stick applications to a certain monitor, so that it will always open up on that application?

I was going to post an image of the display configure screen, but i am to new to post images. If you need to see an image of it let me know and i will email it to you. the image just showed my two screens, a 20" on the right, and one known as unknown on the left. The "Same image in all monitors" button is not checked.

The samsung is the monitor i want it to open on, and the unknown is the tv that i watch the videos on. Firefox in particular always opens up on the tv whenever it was closed while maximized, and opens on the screen it was closed on when it was closed while not maximized. This is the biggest annoyance that i have with ubuntu. I am coming to ubuntu from mac, and have basic to mid-level terminal experience.

share|improve this question
Do you want to define in which display to open each application, or to open all new applications on a given display? – Ciro Santilli 巴拿馬文件 六四事件 法轮功 Jan 23 '15 at 8:42
Adding on to Vadim's answer , you need to set "Force Placement Windows" to "Any". That fixed it for me. – Daniel Centore Jun 4 '15 at 17:21

If you do not have CompizConfig, install it (you need it anyway). Go to CompizConfig Settings Manager > Window Management > Place Windows (make sure that this plugin is checked). Under the General tab you see the option Multi Output Mode. You have options like: Use Active Output Device, or Use Output Device with Pointer etc.

share|improve this answer
Only none of those options are any good. – momo Dec 5 '14 at 22:10

Something similar to this happened to me a while back. Try going to System > Preferences > Monitors. Make sure that the main monitor (your working monitor) is to the left and not the right. If the two monitors are different resoutions make sure that they both align at the top. I noticed this with my setup a couple months ago when I installed a monitor that was using a resolution way higher than my working monitor.

That's what fixed it for me, might work for you too.

share|improve this answer

Another choice is to use devilspie. You can get Devilspie from the Universe repository.

share|improve this answer

I believe (if you have compiz enabled) that you can do this from the compiz settings manager using the place windows plugin. I've not done this myself, but if you play around a bit with the options you should be able to get the window to appear on the desired monitor.

share|improve this answer
I just tried this in 12.04 and it had no effect at all, with any combination of the options. Ugh, wish this were easier. – Tom Brossman Sep 11 '12 at 19:31

I have been fighting this for a week. In System->Preferences select Monitors. Check "Show Monitors in Panel" then click on the monitor you want as default and hit the "Make Default" button. Log out and back in and there you go.

I've tried this a few times and it never took until I checked the "Show Monitors in Panel" box.

share|improve this answer
why I can not find Show Monitors in Panel chceck box which version of ubuntu do you use? – Medya Dec 9 '12 at 21:14

I fixed it by using compiz-config-manager. install using

sudo apt-get install compizconfig-settings-manager

Go to General > General Options > Display Settings

Set Overlapping Output Handling to whatever display you'd prefer (the smaller or the bigger, not sure what to do when you have equally sized monitors?).

Also correctly setting the Outputs text field with your respective screen resolutions seemed to help in placing the windows better.

share|improve this answer

Had a similar problem and found the following:

Right Click on the window titlebar and select: More Actions -▸ Window Manager Settings. There choose Focus in the column to the left. Toggle option Active screen follows mouse.

If no other defaults are specified, windows appear on the currently active screen. With the procedure described above, mouse position defines this active screen.

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.