Skip to content

Commit 3b7b677

Browse files
committed
Call accesskit_macos_add_focus_forwarder_to_window before creating the macOS adapter
1 parent e62ad1b commit 3b7b677

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bindings/c/examples/sdl/hello_world.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ void accesskit_sdl_adapter_init(struct accesskit_sdl_adapter *adapter,
8080
void *source_userdata,
8181
accesskit_action_handler *handler) {
8282
#if defined(__APPLE__)
83+
accesskit_macos_add_focus_forwarder_to_window_class("SDLWindow");
8384
SDL_SysWMinfo wmInfo;
8485
SDL_VERSION(&wmInfo.version);
8586
SDL_GetWindowWMInfo(window, &wmInfo);

0 commit comments

Comments
 (0)