From 8ca4f2ed6e6591a03937689680009e54f23dd6f2 Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Mon, 29 Apr 2024 02:13:15 +0900 Subject: [PATCH] use reversed property for _WEBOS_ACCESS_POLICY_RIBBON --- src/video/wayland/SDL_waylandwebos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/wayland/SDL_waylandwebos.c b/src/video/wayland/SDL_waylandwebos.c index 35a15c0b316fd..121b5ef9c99f4 100644 --- a/src/video/wayland/SDL_waylandwebos.c +++ b/src/video/wayland/SDL_waylandwebos.c @@ -129,8 +129,8 @@ int WaylandWebOS_SetupSurface(_THIS, SDL_WindowData *data) if (SDL_GetHintBoolean(SDL_HINT_WEBOS_ACCESS_POLICY_KEYS_GUIDE, SDL_FALSE)) { wl_webos_shell_surface_set_property(data->shell_surface.webos.webos, "_WEBOS_ACCESS_POLICY_KEYS_GUIDE", "true"); } - if (SDL_GetHintBoolean(SDL_HINT_WEBOS_ACCESS_POLICY_RIBBON, SDL_TRUE)) { - wl_webos_shell_surface_set_property(data->shell_surface.webos.webos, "_WEBOS_ACCESS_POLICY_RIBBON", "true"); + if (!SDL_GetHintBoolean(SDL_HINT_WEBOS_ACCESS_POLICY_RIBBON, SDL_TRUE)) { + wl_webos_shell_surface_set_property(data->shell_surface.webos.webos, "_WEBOS_ACCESS_POLICY_RIBBON", "false"); } if(SDL_GetHintBoolean(SDL_HINT_WEBOS_CURSOR_CALIBRATION_DISABLE, SDL_FALSE)) { wl_webos_shell_surface_set_property(data->shell_surface.webos.webos, "restore_cursor_position", "true");