desktop-shell: add set_panel_position to help place views onscreen

Graphics / Wayland / Weston - Jonny Lamb [collabora.co.uk] - 20 August 2014 09:06 UTC

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.]

765760d desktop-shell: add set_panel_position to help place views onscreen
desktop-shell/shell.c | 29 ++++++++++++++++++++++++++---
desktop-shell/shell.h | 4 ++++
protocol/desktop-shell.xml | 25 ++++++++++++++++++++++++-
3 files changed, 54 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share