crategus / cl-cffi-gtk

cl-cffi-gtk is a Lisp binding to the GTK+ 3 library.
http://www.crategus.com/books/cl-cffi-gtk
146 stars 33 forks source link

Potential fix for crash under win32 when moving window #23

Open ghost opened 10 years ago

ghost commented 10 years ago

Hi Crategus,

According to http://gtk.10911.n7.nabble.com/Glib-2-32-x-Win32-and-threading-td60746.html this originates as an issue with GLIB/GDK functions #'gdk-threads-init, #'gdk-threads-enter and #'gdk-threads-leave under Win32 (or any non X11 environment).

I was able to fix for my app in Windows XP by just commenting out lines: 64, 65, and 70 in gtk/gtk.init.lisp.

Ideally detecting if the environment is Win32 and then avoiding calling the functions would be best though (so it is still used on X11)

dertuxmalwieder commented 9 years ago

The patch that came with 3afe137e22c95f26d604e586f6d11d3ed8db5868, sadly, did not fix the issues. Clozure CL on Windows 8.1 still freezes everything when moving a window. :(

Replacing :win32 by :win64 did not solve the issue for me.