Comment 3 for bug 675862

Revision history for this message
Neil J. Patel (njpatel) wrote :

Brain dump of the implementation I'd like to see in Unity while the dual-screen UX semantics are being worked out:

- unity.cpp needs to have a Relayout() function that grabs the default GdkScreen, get's the GdkRectangle of the primary monitor (we want to try and match the rest of the desktop here), and then reposition & resize the panel's BaseWindow (m_panel_window, I believe) to match the x, y and width of the primary monitor.

- unity.cpp, on initialization, should get the default GdkScreen and connect to it's "monitors-changed" and "size-changed" signals and make the callbacks of those call the Relayout() function. It should also call the Relayout() function once the panel/launcher etc have been created for the first time.