Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • wayland wayland
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 150
    • Issues 150
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 56
    • Merge requests 56
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • waylandwayland
  • waylandwayland
  • Issues
  • #324
Closed
Open
Issue created Sep 24, 2022 by yshui@yshui

Clarify on sub-surface

Quote:

This state includes the sub-surface position relative to the parent surface (wl_subsurface.set_position), and the stacking order of the parent and its sub-surfaces (wl_subsurface.place_above and .place_below).

I read this as each surface has its own stack, which consists of itself and its immediate child sub-surfaces, is that correct? I find this ambiguous because the wording "parent and its sub-surfaces" can also mean "parent and all of its descendant", i.e. including grand-children, etc.

Also as a corollary, .place_above and .place_below moves the surface and its stack as a whole, is that right? Because otherwise the stacks can interleave which would break the assumption above.

(Example:

  A
 / \
B   C 
|
D

initial stacking top to bottom: C, BD, A.

Call .place_above(C) on B, is the resulting stack:

  1. BD, C, A; or
  2. B, C, D, A?

)

Edited Sep 27, 2022 by yshui
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking