Skip to content

Commit

Permalink
ipc-rules: Rename tablet variable to tablet instead of touch
Browse files Browse the repository at this point in the history
  • Loading branch information
soreau committed Aug 26, 2024
1 parent c128478 commit 3f4ad42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/ipc-rules/ipc-input-methods.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ class ipc_rules_input_methods_t
nlohmann::json d;
d["id"] = (intptr_t)device->get_wlr_handle();
d["name"] = nonull(device->get_wlr_handle()->name);
if (auto touch_device = wlr_tablet_from_input_device(device->get_wlr_handle()))
if (auto tablet_device = wlr_tablet_from_input_device(device->get_wlr_handle()))
{
d["vendor"] = touch_device->usb_vendor_id;
d["product"] = touch_device->usb_product_id;
d["vendor"] = tablet_device->usb_vendor_id;
d["product"] = tablet_device->usb_product_id;
}

d["type"] = wlr_input_device_type_to_string(device->get_wlr_handle()->type);
Expand Down

0 comments on commit 3f4ad42

Please sign in to comment.