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

X11Interop is not usable with Wayland #32

Open
philstopford opened this issue Sep 8, 2024 · 0 comments
Open

X11Interop is not usable with Wayland #32

philstopford opened this issue Sep 8, 2024 · 0 comments

Comments

@philstopford
Copy link
Contributor

There needs to be a way of detecting Wayland and using its interop instead. I played around a bit, but I haven't been able to find a way to detect whether the display is X11 or Wayland and GTK3 uses a macro, which makes it more awkward still:

#define GDK_IS_X11_DISPLAY(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_X11_DISPLAY))
#define GDK_IS_X11_DISPLAY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_X11_DISPLAY))
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