Popular CustomEditField uses this code on Linux to determine the delay for detecting a double click:
Declare Function gtk_settings_get_default lib "libgtk-x11-2.0.so" as Ptr
dim gtkSettings as Ptr = gtk_settings_get_default()
Unfortunately, that crashes on my Fedora v32 system in 64 bit, inside gtk_settings_get_for_screen()
This suggests that while the gtk_settings_get_default gets actually called, it then invokes gtk_settings_get_for_screen, as it’s documented, but the screen can’t be determined, leading to the segfault.
This code is called in a Canvas.MouseUp event of a visible window, so the screen of the current window should be determinable.
I am pretty sure this used to work in 32 bit builds.
Does someone know how to make this work?