Hi,
I’ve had this foolish idea to write a KWin effect. The effect I want is simple, just highlight the border of the active window. The goal is to make it very very obvious where my keyboard is going to write.
I’ve gotten as far as getting the right KWin source code to build, and I’ve been able to run my built binary by logging back in with a custom .desktop file. Then I created a new effect called focusborder (which I’ve mostly created by copy/pasting the DimInactive effect, since it appears the most similar to my goal). But now it’s becoming obvious that I need to learn how to debug KWin properly. I want to set breakpoints and stuff.
Googling around a bit, I got the impression that the way to go was to run my kwin_wayland in a nested window, but I can’t seem to find good information on how to do that.
I have found KWin/Debugging - KDE Community Wiki (which is how I got to this forum) and it mentions valgrind (which I am not familiar with). Is that what I should be looking at?