Skip to content

Commit

Permalink
ipc-input-methods: Drop vendor and product fields
Browse files Browse the repository at this point in the history
  • Loading branch information
soreau committed Aug 31, 2024
1 parent 9e433cd commit 0e5e05e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions plugins/ipc-rules/ipc-input-methods.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,7 @@ 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 tablet_device = wlr_tablet_from_input_device(device->get_wlr_handle()))
{
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);
d["type"] = wlr_input_device_type_to_string(device->get_wlr_handle()->type);
d["enabled"] = device->is_enabled();
response.push_back(d);
}
Expand Down

0 comments on commit 0e5e05e

Please sign in to comment.