Skip to content

Commit bf4e1b7

Browse files
committed
fix: ps2触控板有事件上报,但是无法使用
xinput list可以看到触控板变成了floating,被dde-api过滤掉了 Log: 支持状态为floating的触控板 pms: BUG-298693
1 parent 2620c0f commit bf4e1b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dxinput/utils/list.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ list_device(int* num)
5151
DeviceInfo* devs = NULL;
5252
for (i = 0; i < all_num; i++) {
5353
if ((xinfos[i].use != XISlavePointer &&
54-
xinfos[i].use != XISlaveKeyboard)) {
54+
xinfos[i].use != XISlaveKeyboard &&
55+
xinfos[i].use != XIFloatingSlave)) {
5556
continue;
5657
}
5758

0 commit comments

Comments
 (0)