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 want my program's windows to appear in the center of the screen because when i start a program it all was hides the dock. or if the dock i allways on under them.

And im talking unity here:)

share|improve this question
Possible duplicate - does this AU question and answer help?… – fossfreedom May 4 '11 at 20:15

In CompizConfig Settings Manager go to:

Window Management -->Place windows.
Change Placement Mode from Smart to centered.

For me this fixes the problem in 11.04.

share|improve this answer
I am using 12.04, and windows were appearing partially under the top panel. I changed this same setting to 'Cascade' a few days ago and it seems to have fixed it. I don't think the 'Smart' setting is very smart :). – Jazz Aug 25 '12 at 0:28

I guess you can forget about that, right now it's not possible to center windows and apps on the screen. That's why I haven't upgraded to Ubuntu 11.04 yet.

In Ubuntu 10.04.2 you could do it buy either editing the gconf-editor.


smart to centered, and


Options are:

Algorithm to use for window placement (0 = Cascade, 1 = Centered, 2 = Smart, 3 = Maximize, 4 = Random)

setting: 1

Or simply by using the compizconfig-settings-manager.

Now both methods do not work under Ubuntu 11.04 anymore!

It freaking sucks to be honest with you, I don't know why linux users are so obsessed with windows popping up on the right or left...

Kind regards, Stuart

share|improve this answer

To force new windows to be centred set


to true in the gconf configuration editor.

share|improve this answer
This doesn't seem to work on 15.10. What version are you testing it on? – Seth Nov 6 '15 at 2:33

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.