Imwheel gives XError: Bad access when trying to run

Hi everyone!

I’ve been having some issues with my scroll wheel being painfully slow on certain applications (discord, obsidian) - Through some research I found an application called imwheel which seems to do exactly what I need. I’ve made a ~/.imwheelrc file with the contents

"^discord$"
    None, Up, Button4, 5
    None, Down, Button5, 5
"^obsidian$"
    None, Up, Button4, 5
    None, Down, Button5, 5

And run the application withimwheel -d --debug to view the debug logs. The problem is even if I run the application with or without sudo I get this error everytime

XError:
	serial      : 12
	error_code  : 10
	request_code: 28
	minor_code  : 0
	resourceid  : 486
	error string: BadAccess (attempt to access private resource denied)
XError:
	serial      : 13
	error_code  : 10
	request_code: 28
	minor_code  : 0
	resourceid  : 486
	error string: BadAccess (attempt to access private resource denied)

I’ve tried reinstalling, rebooting and running with QT_X11_NO_MITSHM=1 to no avail. I’m running EndeavourOS BSPWM community edition. Any help would be greatly appreciated!

Update: I’ve tried disabling picom but to no luck. I’ve spoken to others with BSPWM who have no issues so I’m sure it’s something to do with my specific setup