summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mader <robert.mader@collabora.com>2022-11-02 18:34:09 +0100
committerRobert Mader <robert.mader@collabora.com>2022-11-03 13:17:40 +0100
commitd313c8f4fe14d8a287bd75bb202434c538048808 (patch)
treeaf64a622e1777a080017f7551840ae0bd306645d
parent6d1c65551b719be45529664b846ddc9616766e23 (diff)
downloadmutter-d313c8f4fe14d8a287bd75bb202434c538048808.tar.gz
Revert "wayland/pointer-constraints: Fix window check on subsurfaces"
This reverts commit 50288d1eadba3bc51144463753a54797bf86cb2c. 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>
-rw-r--r--src/wayland/meta-wayland-pointer-constraints.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland/meta-wayland-pointer-constraints.c b/src/wayland/meta-wayland-pointer-constraints.c
index 305684708..965b95dda 100644
--- a/src/wayland/meta-wayland-pointer-constraints.c
+++ b/src/wayland/meta-wayland-pointer-constraints.c
@@ -457,7 +457,7 @@ should_constraint_be_enabled (MetaWaylandPointerConstraint *constraint)
{
MetaWindow *window;
- window = meta_wayland_surface_get_toplevel_window (constraint->surface);
+ window = meta_wayland_surface_get_window (constraint->surface);
if (!window)
{
/*