Reject cyclic wl_subcompositor.get_subsurface requests
The specification defines that the compositor must raise a BAD_PARENT
protocol error if get_subsurface() is called with a parent which is
a descendant of the surface itself (or if it matches the surface
itself).
Failing to do this could cause an infinite recursion and stack
overflow later.
Pick-to: 6.8 6.11 6.12
Task-number: QTBUG-148611
Change-Id: I6cac060501ea274110e09bec3155f616e6256dc5
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
| commit | 5f6557dc157d176d1f8835f595583fbdfd6e1c14 |
| parent | a69142788bfdf13ba76df8f8c2b324dcad0d9fc9 |
| author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> |
| committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> |
| commit time | Thu, 30 Jul 2026 09:34:48 +0000 |