I tried REAPER and I couldn't reproduce any of the issues described under GNOME/mutter. Maybe that's WM specific? Which WM are you using?
Although the change with `clip_fullscreen_window` and `set_capture` is probably fine I also don't see SetCapture being called, is there any specific steps to follow to trigger that?