MetaWaylandPointerConstraint: Unset is_enabled state when disabling

If we don't set the is_disabled state to FALSE when disabling,
re-enabling will fail.

https://bugzilla.gnome.org/show_bug.cgi?id=762661
This commit is contained in:
Jonas Ådahl 2016-02-25 11:13:30 +08:00
parent 6396974eae
commit b04747b174

View File

@ -331,6 +331,7 @@ meta_wayland_pointer_constraint_enable (MetaWaylandPointerConstraint *constraint
static void
meta_wayland_pointer_constraint_disable (MetaWaylandPointerConstraint *constraint)
{
constraint->is_enabled = FALSE;
meta_wayland_pointer_constraint_notify_deactivated (constraint);
meta_wayland_pointer_end_grab (constraint->grab.pointer);
meta_backend_set_client_pointer_constraint (meta_get_backend (), NULL);