]> git.mdlowis.com Git - proto/labwc.git/commitdiff
input: remove zero initialization
authorJens Peters <jp7677@gmail.com>
Tue, 10 Jun 2025 15:07:17 +0000 (17:07 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 14 Jun 2025 12:45:51 +0000 (13:45 +0100)
This is already done by `znew()`.

src/input/tablet-tool.c

index 2532b0b9990fc3d8790c76dce86eeb1acfcf1618..fcc1e7330aabba3a93747e99f76b9f23fb7b74b0 100644 (file)
@@ -70,17 +70,6 @@ tablet_tool_create(struct seat *seat,
                wlr_tablet_tool_create(seat->server->tablet_manager,
                        seat->seat, wlr_tablet_tool);
        wlr_tablet_tool->data = tool;
-       tool->force_mouse_emulation = false;
-       tool->motion_mode = LAB_TABLET_MOTION_ABSOLUTE;
-       tool->x = 0.0;
-       tool->y = 0.0;
-       tool->distance = 0.0;
-       tool->pressure = 0.0;
-       tool->tilt_x = 0.0;
-       tool->tilt_y = 0.0;
-       tool->rotation = 0.0;
-       tool->slider = 0.0;
-       tool->wheel_delta = 0.0;
        wlr_log(WLR_INFO, "tablet tool capabilities:%s%s%s%s%s%s",
                wlr_tablet_tool->tilt ? " tilt" : "",
                wlr_tablet_tool->pressure ? " pressure" : "",