Revert "Update ipc-json.c"

This reverts commit 48c0c0b9d6.
This commit is contained in:
jlo62 2023-09-18 18:03:14 +02:00
parent db98bdd4d2
commit a441c20a46
1 changed files with 2 additions and 0 deletions

View File

@ -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;