mut-ex / awesome-wm-nice

An Awesome WM module that add MacOS-like window decorations, with seamless titlebars, double click to maximize, and window shade feature
MIT License
469 stars 31 forks source link

Nice is stop working with new GDK updates in arch #22

Open raven2cz opened 3 years ago

raven2cz commented 3 years ago

Hi mut-ex, nice is not work now. The arch began to cast new spells with GTK 40. Some packages are on 40 version now. And it seems that it kills your module. This is from my both stations with awesome-git aur version which using nice module. The stacktrace is below.

error while running function! stack traceback: [C]: in function 'lgi.corelgilua51.registerlock' /usr/share/lua/5.3/lgi/override/Gdk.lua:23: in main chunk [C]: in function 'require' /usr/share/lua/5.3/lgi/namespace.lua:183: in function 'lgi.namespace.require' (...tail calls...) /home/box/.config/awesome/nice/init.lua:57: in main chunk [C]: in function 'require' /home/box/.config/awesome/rc.lua.test:35: in main chunk error: /usr/share/lua/5.3/lgi/override/Gdk.lua:23: bad argument #1 to 'registerlock' (userdata expected, got nil) error while running function! stack traceback: /home/box/.config/awesome/nice/init.lua:79: in main chunk [C]: in function 'require' /home/box/.config/awesome/rc.lua:35: in main chunk error: /home/box/.config/awesome/nice/init.lua:79: attempt to call a nil value (field 'init')

Aire-One commented 3 years ago

Coming here from your post on r/awesomewm

On the awesome repo we have this PR https://github.com/awesomeWM/awesome/pull/3297 to fix the GTK 4 vs GTK 3 issue because LGI don't support GTK 4 for now. I guess something similar should be done to properly load GDK.

mipmip commented 3 years ago

:+1: