Gdkx11 on Wayland

One or more roxterm users would like the WINDOWID environment variable back. This requires the use of gdk_x11_window_get_xid(). I’ve made sure roxterm only calls it after compile-time and run-time checks:

     if (GDK_IS_X11_DISPLAY(gdk_display_get_default()))

but I’m still concerned that when it’s running in Wayland but X11 was also available at compile-time, the presence of gdk_x11_window_get_xid() may cause GDK’s X11 backend shared library to be uselessly loaded. Is that the case, or does the Wayland backend include dummy versions of the gdk_x11 functions?

As far as I know the gdk backends are not in separate libraries, there is only and all backends are included there. So you are not loading anything more or less in memory by doing that.

I see, the separate library for X11 was for GDK2. So there’s no compelling reason to provide a compile-time option to stop this being compiled in. Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.