~mzanetti/unity8/gnome-software-center

« back to all changes in this revision

Viewing changes to qml/Stage/ChildWindowTree.qml

  • Committer: Bileto Bot
  • Author(s): Daniel d'Andrada
  • Date: 2017-03-28 21:46:37 UTC
  • mfrom: (2891.2.2 availableDesktopArea)
  • Revision ID: ci-train-bot@canonical.com-20170328214637-31floxqm0mqf2otp
Tell qtmir/miral about the available desktop area

So that it can make correct window management decisions

Plus some refactorings:
- Make AvailableDesktopArea provide boundariesForWindowPlacement
- AvailableDesktopArea also replaces Stage.leftMargin and Panel.panelHeight in Stage.qml

Approved by: Michael Zanetti, Unity8 CI Bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    property real displacementX: 0
26
26
    property real displacementY: 0
27
27
    property alias boundsItem: childWindow.boundsItem
 
28
    property alias decorationHeight: childWindow.decorationHeight
28
29
 
29
30
    x: surface ? surface.position.x + displacementX : 0
30
31
    y: surface ? surface.position.y + displacementY : 0