From a441c20a46a003a493363180c2354abe3ee583a1 Mon Sep 17 00:00:00 2001 From: jlo62 Date: Mon, 18 Sep 2023 18:03:14 +0200 Subject: [PATCH] Revert "Update ipc-json.c" This reverts commit 48c0c0b9d6d1a366fe61c5b39a6f86bb469886e3. --- sway/ipc-json.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 9edd0f1a4..0abccb2c6 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -1128,6 +1128,8 @@ json_object *ipc_json_describe_input(struct sway_input_device *device) { if (device->wlr_device->type == WLR_INPUT_DEVICE_POINTER) { struct input_config *ic = input_device_get_config(device); + float scroll_factor = 1.0f; + float sensitivity = 1.0f; if (ic != NULL) { if (!isnan(ic->scroll_factor) && ic->scroll_factor != FLT_MIN) { scroll_factor = ic->scroll_factor;