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

It's easy to maximise windows on a single monitor (press the maximise button, or drag the window titlebar to the top of the screen).

How can I maximise a window so that it takes up two screens?

share|improve this question
up vote 15 down vote accepted

This is possible by manually telling Compiz the screen output size, using the combined resolution of the two monitors. That's where the limitation kicks in: both displays need to have the same (vertical) resolution for this to make sense (else you'd end up with cut off content on the smaller screen or dead space on the bigger one).

For example, with two monitors with 1920x1080 resolution, you'd:

  • Open the CompizConfig Settings Manager (if you haven't already, install the compizconfig-settings-manager package) and go to the General Options plugin.
  • On the Display Settings tab, disable the Detect Outputs checkbox, select the 640x480+0+0 entry and click on Edit,
  • Now change this to 3840x1080+0+0 and hit close.

enter image description here

Compiz should now treat your multi-monitor setup as one big output.

share|improve this answer
Thanks for the help! – user24668 Jan 10 '12 at 12:54
That helps, thanks! However it changes the behavior of double click on any window. Ideally I would to be able to tell that this time I want a normal maximisation and this other time I prefer a double one. – RockScience Apr 14 '14 at 11:20
I'm wondering aobut that, too. Is it possible to have this on a per-window basis? – Ingo Apr 17 '14 at 11:00
This just treats your monitors as a single display. How about the ability to keep independent displays, and span a window across them with a shortcut? Pretty much the same way win7 does. – nullsteph Jan 15 '15 at 3:56

Drag your window until it snaps to one edge of first monitor then resize it all the way to the other end of the secondary monitor. It is not real window maximization, but it displays window content wider or higher if monitors are positioned one above other.

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.