Skip to content

Commit d9f51c0

Browse files
committed
always respond to screensaver request
1 parent 0d9b173 commit d9f51c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/webos/SDL_webos_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ static int screenSaverRequestCallback(LSHandle *sh, LSMessage *reply, HContext *
273273
(void) ctx;
274274

275275
device = SDL_GetVideoDevice();
276-
if (device == NULL || !device->suspend_screensaver) {
276+
if (device == NULL) {
277277
return 1;
278278
}
279279

@@ -290,7 +290,7 @@ static int screenSaverRequestCallback(LSHandle *sh, LSMessage *reply, HContext *
290290
}
291291
response = PBNJSON_jobject_create_var(
292292
PBNJSON_jkeyval(J_CSTR_TO_JVAL("clientName"), PBNJSON_j_cstr_to_jval((const char *)ctx->userdata)),
293-
PBNJSON_jkeyval(J_CSTR_TO_JVAL("ack"), PBNJSON_jboolean_create(0)),
293+
PBNJSON_jkeyval(J_CSTR_TO_JVAL("ack"), PBNJSON_jboolean_create(!device->suspend_screensaver)),
294294
PBNJSON_jkeyval(J_CSTR_TO_JVAL("timestamp"), timestamp),
295295
NULL);
296296

0 commit comments

Comments
 (0)