Skip to content

Commit

Permalink
updated ss4s
Browse files Browse the repository at this point in the history
fixed build issue with older SDL
  • Loading branch information
mariotaku committed Apr 30, 2024
1 parent c29cb49 commit 70db41a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ int app_init(app_t *app, app_settings_loader *settings_loader, int argc, char *a
SDL_SetHint(SDL_HINT_WEBOS_ACCESS_POLICY_KEYS_HOME, "true");
SDL_SetHint(SDL_HINT_WEBOS_ACCESS_POLICY_RIBBON, "false");
}
#else
if (app.settings.syskey_capture) {
SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "1");
}
#endif
// DO not init video subsystem before NDL/LGNC initialization
if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/app/ui/streaming/streaming.controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static void on_view_created(lv_fragment_t *self, lv_obj_t *view) {
#if !defined(TARGET_WEBOS)
const app_settings_t *settings = &controller->global->settings;
if (settings->syskey_capture) {
SDL_SetWindowKeyboardGrab(controller->global->ui.window, SDL_TRUE);
SDL_SetWindowGrab(controller->global->ui.window, SDL_TRUE);
}
#endif
}
Expand All @@ -243,7 +243,7 @@ static void on_delete_obj(lv_fragment_t *self, lv_obj_t *view) {
lv_group_del(controller->group);

#if !defined(TARGET_WEBOS)
SDL_SetWindowKeyboardGrab(controller->global->ui.window, SDL_FALSE);
SDL_SetWindowGrab(controller->global->ui.window, SDL_FALSE);
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion third_party/ss4s

0 comments on commit 70db41a

Please sign in to comment.