diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-01-26 11:54:55 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-01-26 11:54:55 +0100 |
commit | 219b6f0c6983e7e98b17ab0da3ed2729181fce8d (patch) | |
tree | ef4159b354aca552785c799ee280b49c83f856aa | |
parent | e6915bee8a04d0ecb03b1065fefd350a58e8b523 (diff) |
-rw-r--r-- | src/main.cpp | 2 |
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; } |