From 8a1099f816652cffdd24d8d0c91b36e6ae7ef031 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 22 Mar 2020 00:50:42 -0700 Subject: [PATCH] client (Linux): Fix X-based idle detection --- client/hostinfo_unix.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/hostinfo_unix.cpp b/client/hostinfo_unix.cpp index 26c2073dd9..68a7358392 100644 --- a/client/hostinfo_unix.cpp +++ b/client/hostinfo_unix.cpp @@ -1950,7 +1950,7 @@ long xss_idle() { // no_available_x_display = false; XScreenSaverQueryInfo(disp, DefaultRootWindow(disp), xssInfo); - idle_time = xssInfo->idle; + display_idle_time = xssInfo->idle; // Close the connection to the XServer // @@ -1962,10 +1962,11 @@ long xss_idle() { if (log_flags.idle_detection_debug) { msg_printf(NULL, MSG_INFO, - "[idle_detection] XSS idle detection succeeded on DISPLAY '%s'.", it->c_str() + "[idle_detection] XSS idle detection succeeded on display '%s'.", + it->c_str() ); msg_printf(NULL, MSG_INFO, - "[idle_detection] idle_time: %ld", idle_time + "[idle_detection] display idle time: %ld sec", display_idle_time ); }