File: 0023-ipc-input-methods-Drop-vendor-and-product-fields.patch

package info (click to toggle)
wayfire 0.9.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,732 kB
  • sloc: cpp: 49,708; xml: 2,783; ansic: 699; makefile: 161
file content (32 lines) | stat: -rw-r--r-- 1,378 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From c19648e19803a9a54b3a6f7cbe1ea6f629343691 Mon Sep 17 00:00:00 2001
From: Scott Moreau <oreaus@gmail.com>
Date: Sat, 31 Aug 2024 14:49:39 -0600
Subject: [PATCH 23/34] ipc-input-methods: Drop vendor and product fields

Reference: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4582
---
 plugins/ipc-rules/ipc-input-methods.hpp | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/plugins/ipc-rules/ipc-input-methods.hpp b/plugins/ipc-rules/ipc-input-methods.hpp
index e77622ca..ecd4c281 100644
--- a/plugins/ipc-rules/ipc-input-methods.hpp
+++ b/plugins/ipc-rules/ipc-input-methods.hpp
@@ -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);
         }
-- 
2.45.2