https://bugs.documentfoundation.org/show_bug.cgi?id=123080

--- Comment #4 from Caolán McNamara <[email protected]> ---
seeing as GDK_IS_WAYLAND_DISPLAY is...

#define GDK_IS_WAYLAND_DISPLAY(object)        (G_TYPE_CHECK_INSTANCE_TYPE
((object), GDK_TYPE_WAYLAND_DISPLAY))

and GDK_TYPE_WAYLAND_DISPLAY is...

#define GDK_TYPE_WAYLAND_DISPLAY              (gdk_wayland_display_get_type())

perhaps some dlsyming replacement somethink like...

bool Gdk_Is_Wayland_Display(GdkDisplay* pDisplay)
{
    auto get_type = (void (*) (void))dlsym(nullptr,
"gdk_wayland_display_get_type");
    if (!get_type)
        return false;
    return (G_TYPE_CHECK_INSTANCE_TYPE(object, get_type())); 
}

would work without putting a link time requirement on
gdk_wayland_display_get_type ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to