mirror of
https://github.com/swaywm/sway.git
synced 2025-03-04 06:34:44 +01:00
parent
3149f533fe
commit
db98bdd4d2
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue