From 219b6f0c6983e7e98b17ab0da3ed2729181fce8d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 26 Jan 2025 11:54:55 +0100 Subject: ss --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3