mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
6396974eae
commit
b04747b174
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user