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

Running cl-cffi-gtk on macOS #72

Open
jmercouris opened this issue Feb 10, 2020 · 1 comment
Open

Running cl-cffi-gtk on macOS #72

jmercouris opened this issue Feb 10, 2020 · 1 comment

Comments

@jmercouris
Copy link

Hi, I wanted to add the following notes which may help in the documentation for how to run some widgets on macOS.

macOS generally requires drawing from the main thread. The cl-cffi-gtk within-main-loop macro runs on the GTK thread rather than the main thread. This works most of the time, but for some special widgets like the WebKitGTK+ widget, this will not work.

If you manually invoke gtk-main from the cl-cffi-gtk package you can control on which thread things happen (instead of using within-main-loop) you can then force all cl-cffi-gtk operations to happen on the main SBCL thread and then rendering happens correctly.

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

2 participants
@jmercouris and others