Update ipc-json.c

This commit is contained in:
jlo62 2023-09-18 12:13:47 +02:00 committed by GitHub
parent 475e289226
commit 48c0c0b9d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1128,8 +1128,6 @@ json_object *ipc_json_describe_input(struct sway_input_device *device) {
if (device->wlr_device->type == WLR_INPUT_DEVICE_POINTER) { if (device->wlr_device->type == WLR_INPUT_DEVICE_POINTER) {
struct input_config *ic = input_device_get_config(device); struct input_config *ic = input_device_get_config(device);
float scroll_factor = 1.0f;
float sensitivity = 1.0f;
if (ic != NULL) { if (ic != NULL) {
if (!isnan(ic->scroll_factor) && ic->scroll_factor != FLT_MIN) { if (!isnan(ic->scroll_factor) && ic->scroll_factor != FLT_MIN) {
scroll_factor = ic->scroll_factor; scroll_factor = ic->scroll_factor;