Closed make-42 closed 2 months ago
Closes #59
I'll do my best!
I'll do my best!
Good luck and have fun
I made all the changes you asked for except for the dynamic color reload part because I have no idea how to change the colors without triggering a whole reload.
I made all the changes you asked for except for the dynamic color reload part because I have no idea how to change the colors without triggering a whole reload.
Yeah because it isn't really obvious, I'd never thought of having code that redraws colors outside of the main loop, hence why a bit of architectural elbow grease is required unfortunately.
something like this? it crashes here though (null pointer dereference)
src/xava.c
58 output->func.clear(xava);
Funnily enough it doesn't for me, can you clear the compile cache, maybe somethings up.
I'm on X11, that might be the issue. the clear function might be erroring out on x11.
There seems to be an bug with IONotify since it keeps calling non-stop.
Maybe yes
Ok I found out whats the bug. Firstly you should actually check for an event instead of blindly reloading. Secondly the clear call seg faults on some systems because its supposed to be called from within the main thread (OpenGL moment).
We need an way to signal to the thread that we are redrawing. Exposing redrawWindow
might be the solution here.
What do you mean by checking for an event instead of blindly reloading?
oh
i get it
Anyway I fixed it, sending the patch soon enough
Okay
Apply that patch, push here and I'll rebase
Additionally test out how it works for you.
Remove the glDrawArrays line I added by accident, it shouldn't be there
Actually don't, let me squash and merge this.
okay
It doesn't crash but doesn't update the colors either on X11 until a restart.
It doesn't crash but doesn't update the colors either on X11 until a restart.
Hm weird
It doesn't crash but doesn't update the colors either on X11 until a restart.
I've tested both X11 and Wayland, neither seem to have the issue on both Cairo and OpenGL
Can you send your config just in case?
I'll do some investigation
Okay. I fixed it. Line 18 of pywal.c it's ".cache" and not ".config" that should be used.
It didn't register the file properly and probably read from xrdb on startup instead.
@make-42 oh whoops, my bad
sent the patch to master
Haha! Thank you!
This works...