What I'm trying to do should be relatively simple. I want to set a display consisting of two (or, optionally, three monitors). Two of them are supposed to display a Chromium browser window and the third one, if present, will display some unrelated stuff. All monitors are set to 1280x1024 resolution and the browser window is supposed to be stretched so that its total height is 2048 pixels (the top half drawn on the monitor above and the bottom half on the monitor below). I tried to set the correct window coordinates and size using a window manager called openbox. I put the following section in its config file rc.xml:
<applications>
<application name="*">
<decor>no</decor>
<position>
<x>0</x>
<y>0</y>
<monitor>...</monitor> //appropriate number
</position>
<size>
<width>1280</width>
<height>2048</height>
</size>
</application>
</applications>
While the window position is correct (it starts at the top left corner of the top monitor) its size is not. For some reason the size of the browser window is set to 1280x1024 instead of 1280x2048 so that it completely fills only the top monitor while the bottom one remains empty. Here's the actual command line used to run Chromium:
chromium-browser --incognito --app=<MY URL>
As you can see, it lacks --window-position
and --window-size
arguments because openbox was supposed to set those two values for me which it did incorrectly for the latter. Basically, openbox seems unable to handle window heights greater than the height of a single monitor. As long as I set window height in rc.xml to any value less than or equal to 1024, everything is fine, but whenever I try a value greater than that, it gets scaled down to 1024 and the whole window occupies the top monitor, just as if openbox didn't understand it should draw the remaining part of the window on the monitor below. When I tried to run another GUI application (gedit) the effect was the same so it seems to be a general behaviour rather than a problem caused only by Chromium. The OS I tested it with was Ubuntu 14.04 64-bit and the browser was Chromium 41 if it matters. Any help will be aprreciated.