]> git.mdlowis.com Git - proto/labwc.git/commitdiff
input/cursor: fix assignment/equality mix-up
authorJohn Lindgren <john@jlindgren.net>
Thu, 14 Aug 2025 18:35:44 +0000 (14:35 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 15 Aug 2025 05:48:19 +0000 (06:48 +0100)
src/input/cursor.c

index 062c346551823a4bd90cfee70a2d8e4f4a97f1f8..1ad7f1271fa547c70d8197e4279a48aa734d3042 100644 (file)
@@ -725,7 +725,7 @@ handle_constraint_commit(struct wl_listener *listener, void *data)
        struct wlr_pointer_constraint_v1 *constraint = seat->current_constraint;
        /* Prevents unused variable warning when compiled without asserts */
        (void)constraint;
-       assert(constraint->surface = data);
+       assert(constraint->surface == data);
 }
 
 static void