wayland/pointer-constraints: Fix window check on subsurfaces
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)