I figured out that by using raspberry-config I could change from Wayland back to X11 . This fixed the mouse focus issue.
I'm using PD on a Raspberry PI 5 and having trouble with the mouse getting
focus in the proper PD window. If there is a window under a PD patch window
the focus of the mouse doesn't work. Even when I click on the title bar of
the window I'm trying to interact with I can't get the mouse to focus on
that window. Wondering if anyone else has come across this and if they have
found a solution. Thanks for any tips.