Run my graphics applications on raspberry with dietpi

Hello everybody
i am new to dietpi but quite experienced with raspbian. I searched the forum but found no suggestions for my problem. I wrote a home automation application in lazarus with a graphical interface that runs very well on raspbian but on dietpi with LXDE it does not work at all (all this is resolved in a “spin” the cursor for a few seconds).
What items do I need to install or enable for it to work?
Thanks for any suggestions