aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-01-26 11:54:55 +0100
committerdec05eba <dec05eba@protonmail.com>2025-01-26 11:54:55 +0100
commit219b6f0c6983e7e98b17ab0da3ed2729181fce8d (patch)
treeef4159b354aca552785c799ee280b49c83f856aa
parente6915bee8a04d0ecb03b1065fefd350a58e8b523 (diff)
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 46479f5..e12958e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4514,7 +4514,7 @@ static bool has_input_device_with_keyboard_and_mouse() {
while(fgets(line, sizeof(line), f)) {
if(strncmp(line, "S:", 2) == 0) {
current_device_is_virtual = strstr(line, "/virtual/") != nullptr;
- } else if(current_device_is_virtual && strncmp(line, "H:", 2) == 0 && strstr(line, "kbd") && strstr(line, "mouse")) {
+ } else if(!current_device_is_virtual && strncmp(line, "H:", 2) == 0 && strstr(line, "kbd") && strstr(line, "mouse")) {
kbd_and_mouse = true;
break;
}