Openbox freezing frequently
In the recent months I've been having a problem with Openbox (using it as WM on LXQt). What happens is that the system partially freezes: I can still see the time and the cpu/ram stats on the panel updating or notifications, but everything else on the system is unresponsive. I can move the mouse but I can't click anywhere and I also can't use keyboard shortcuts.
What I have to do is logging in tty1, exporting DISPLAY=:0
and XAUTHORITY=/tmp/xauth_*****
(the Xauthority file created by SDDM), killing Openbox through htop and then restarting Openbox.
The freeze seems to happen in random moments, but one constant that I've noticed is that it always happens when the typing cursor is active on a window, in other words, when I'm typing.
This is the tty1 output when a freeze happened: X connection to :0 broken (Explicit kill or server shutdown)
Any help in debugging this and find the culprit would be much appreciated
EDIT: forgot to mention that my problem is exactly the same that is described here or here, but no solutions were given.