input/libinput: fix parsing input drag_lock command

Regression introduced by by b160fac9f7a
This commit is contained in:
Baltazár Radics 2024-12-08 16:05:42 +01:00 committed by Simon Ser
parent 1d783794b5
commit 4eb86fce07

View file

@ -16,7 +16,7 @@ struct cmd_results *input_cmd_drag_lock(int argc, char **argv) {
}
#if HAVE_LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY
if (strcmp(argv[0], "enabled_sticky")) {
if (strcmp(argv[0], "enabled_sticky") == 0) {
ic->drag_lock = LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY;
} else
#endif