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

awesome v4.3 issue with nice #40

Open Bogfoot opened 1 year ago

Bogfoot commented 1 year ago

Following instructions for the stable version of 'nice' for awesome v4.3 I get this error message after reloading my config:

Oops, an error happened!
/usr/share/lua/5.3./lgi/override/Gdk.lua:23: bad argument #1 to 'registerlock' (userdata expected, got nil)

and

Oops, there were errors during startup!
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.init.require'
          (...tail calls...)
          /home/bogfoot/.config/awesome/nice/init.lua:57: in main chunk
    [C]: in function 'require'
           /home/bogfoot/.config/awesome/rc.lua:70: in main chunk
error: /usr/share/lua/5.3/lgi/override/Gdk.lua:23: bad argument #1 to 'registerlock' (userdata expected, got nil)

Same thing happens when using the 'unstable' version.

I commented out the part in the config mentioning request::titlebars and called the default function

...
local nice = require("nice")
...
beautiful.init(...)
nice()
...

like this.

awesome --version returns

awesome v4.3 (Too long)
 • Compiled against Lua 5.3.6 (running with Lua 5.3)
 • D-Bus support: ✔
 • execinfo support: ✔
 • xcb-randr version: 1.6
 • LGI version: 0.9.2

Distro is Ubuntu 22.10.

Aire-One commented 1 year ago

Should be fixed by https://github.com/mut-ex/awesome-wm-nice/pull/33 or https://github.com/mut-ex/awesome-wm-nice/pull/25.

Since the author is AWOL, I recommend you to manually change the code in your locally copied files.

Bogfoot commented 1 year ago

Unfortunately doing the changes mentioned in the 2 issues above only brings about more issues that I have no time to tackle at this point in time so I'll just drop this module for now.