https://bugs.kde.org/show_bug.cgi?id=438808

            Bug ID: 438808
           Summary: `wl_subsurface_place_below` does not have any effect
                    when used with a subsurface and its parent
           Product: kwin
           Version: 5.22.0
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: nullg...@gmail.com
  Target Milestone: ---

Created attachment 139439
  --> https://bugs.kde.org/attachment.cgi?id=139439&action=edit
The test app rendered incorrectly by Kwin vs. correctly by Weston

SUMMARY
Wayland subsurfaces stay on top when using `wl_subsurface_place_below` to move
them under their parent, while placing a subsurface under a sibling works fine.

The Wayland documentation clearly states it should be possible to use
`wl_subsurface_place_below` and `wl_subsurface_place_above` with the
subsurface's parent instead of a sibling:
https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_subsurface-request-place_above

This bug used to exist in wlroots as well; it was fixed in `master` recently:
https://github.com/swaywm/wlroots/commit/9e58301df7f09660cb36337211cbf5700d99810c

STEPS TO REPRODUCE
1. clone the test repo:
https://code.videolan.org/nullgemm/wl_placement_bug_test
2. make and run the example code

OBSERVED RESULT
Under Kwin the subsurface (in green) stays on top of the main surface (in
semi-transparent red).

EXPECTED RESULT
Under Weston the subsurface is moved under the main surface

SOFTWARE/OS VERSIONS
Linux Kernel Version: 5.12.10
Plasma Version: 5.22.0
Plasma Framework Version: 5.83.0
Qt Version: 5.15.2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to