Resize applications based on XQuartz window

Hi,
I have ddd open source debugger installed on MacOS. It usually starts up in a weird size and placement.
I would like to move and resize the window with KM. I have tried different steps to identify the application in order to select it eg, with image, with Window title name. Both of them don’t work. The image recognition while works in the beginning doesn’t work as soon I resize the window manually. The window title is empty. The problem seems to be that it is not a regular Mac application but an XQuartz application.

So really my question is how to identify and resize an XQuartz based application ?