From 67535a9f475f8b41128bf760c7d16bae4b1e158b Mon Sep 17 00:00:00 2001 From: Craig Carnell <1188869+cscd98@users.noreply.github.com> Date: Thu, 1 Jan 2026 16:49:53 +0000 Subject: [PATCH] webOS: allow user to decide about the screensaver --- input/common/wayland_common_webos.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/input/common/wayland_common_webos.c b/input/common/wayland_common_webos.c index 5f5f1a3ccf2e..a2ed07fdfa97 100644 --- a/input/common/wayland_common_webos.c +++ b/input/common/wayland_common_webos.c @@ -702,6 +702,9 @@ static bool screenSaverCallback(LSHandle* sh, LSMessage* reply, void* context) if (strcmp(state, "Active") != 0) return true; + settings_t *settings = config_get_ptr(); + bool suspend_screensaver = settings->bools.ui_suspend_screensaver_enable; + rjsonwriter_t *w = rjsonwriter_open_memory(); rjsonwriter_raw(w, "{", 1); rjsonwriter_add_string(w, "clientName"); @@ -710,7 +713,7 @@ static bool screenSaverCallback(LSHandle* sh, LSMessage* reply, void* context) rjsonwriter_raw(w, ",", 1); rjsonwriter_add_string(w, "ack"); rjsonwriter_raw(w, ":", 1); - rjsonwriter_rawf(w, "%s", "false"); + rjsonwriter_rawf(w, "%s", suspend_screensaver ? "false" : "true"); rjsonwriter_raw(w, ",", 1); rjsonwriter_add_string(w, "timestamp"); rjsonwriter_raw(w, ":", 1);