constrainttree: Fix criticals

We don't want the edit constraints to be required,
since we want to violate them when the pointer moves
off the edge. Make them strong instead, and now
everything just works.
This commit is contained in:
Matthias Clasen
2019-06-28 17:10:44 +00:00
parent aed7d32cde
commit 7e11df9154

View File

@@ -214,10 +214,10 @@ drag_begin (GtkGestureDrag *drag,
gtk_constraint_solver_add_edit_variable (solver,
drag_node->x_var,
GTK_CONSTRAINT_WEIGHT_REQUIRED);
GTK_CONSTRAINT_WEIGHT_STRONG);
gtk_constraint_solver_add_edit_variable (solver,
drag_node->y_var,
GTK_CONSTRAINT_WEIGHT_REQUIRED);
GTK_CONSTRAINT_WEIGHT_STRONG);
gtk_constraint_solver_begin_edit (solver);
}