Revert "wayland/pointer-constraints: Fix window check on subsurfaces"

This reverts commit 50288d1ead.

The fix is uncomplete and causes crashes under certain circumstances.
As we are close to the next point release let's revert it for now.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2685>
This commit is contained in:
Robert Mader 2022-11-02 18:34:09 +01:00
parent 6d1c65551b
commit d313c8f4fe

View File

@ -457,7 +457,7 @@ should_constraint_be_enabled (MetaWaylandPointerConstraint *constraint)
{ {
MetaWindow *window; MetaWindow *window;
window = meta_wayland_surface_get_toplevel_window (constraint->surface); window = meta_wayland_surface_get_window (constraint->surface);
if (!window) if (!window)
{ {
/* /*