Skip to content

wayland/pointer-constraints: Fix window check on subsurfaces

Robert Mader requested to merge rmader/mutter:issue2223 into main

get_window() is not implemented by the subsurface role, returning NULL, breaking constrains for subsurfaces. While the get_window() behaviour could change in the future, for now use get_toplevel_window() which does what we need here while avoiding possible regressions.

Closes: #2223 (closed)

Merge request reports