desktop-shell: add set_panel_position to help place views onscreen
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Wed, 20 Aug 2014 13:53:19 +0000 (15:53 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 20 Aug 2014 14:06:19 +0000 (17:06 +0300)
commit765760dc719adf39d066345d6498bca160ab1ece
treebdaf845a93de3d3ebaeb07e352b4f693e6160dbf
parentd3d128e07c54bc18a5a2c0bfb4793bd566d9b5b6
desktop-shell: add set_panel_position to help place views onscreen

Panels are always assumed to be on the top edge of the output. If this
is not the case views will be placed under the panel, wherever it is,
and maximize doesn't use the correct space allocated for views.

By telling the server on which edge the panel is located, it can
correctly calculate where to put new views and how big maximized views
should be.

[Pekka Paalanen: the user of this protocol so far is Maynard.]

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
desktop-shell/shell.c
desktop-shell/shell.h
protocol/desktop-shell.xml