Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile failed , report the error which macro undefined #36

Open
DavidChan0519 opened this issue Feb 13, 2023 · 1 comment
Open

compile failed , report the error which macro undefined #36

DavidChan0519 opened this issue Feb 13, 2023 · 1 comment

Comments

@DavidChan0519
Copy link

main.c:2241:14: error: ‘SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR’ undeclared (first use in this function)
SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");

@DavidChan0519
Copy link
Author

#ifdef SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR
  SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
#endif

#ifdef SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH
  SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1");
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant