Skip to content

subsurface: move parent link to state

Simon Ser requested to merge github/fork/emersion/subsurface-parent-link into master

Move the wlr_subsurface parent link to the subsurface state.

This is a dumb find/replace operation. This shouldn't result in any behavior change.


We need to be a bit careful here, the wlr_subsurface_state is actually an "add-on" for the parent wl_surface's state. It's not applied on child commit, it's applied on parent commit.

      Sub-surfaces also have another kind of state, which is managed by
      wl_subsurface requests, as opposed to wl_surface requests. 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). This state is applied when the parent surface's
      wl_surface state is applied, regardless of the sub-surface's mode.
      As the exception, set_sync and set_desync are effective immediately.

cc @vyivel

Merge request reports

Loading