crategus / cl-cffi-gtk

cl-cffi-gtk is a Lisp binding to the GTK+ 3 library.

Home Page:http://www.crategus.com/books/cl-cffi-gtk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Potential fix for crash under win32 when moving window

opened this issue · comments

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)

The patch that came with 3afe137, 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.