Plugin works fine except for visual bug in FL Studio

I am experiencing a bug with my plugin that’s exclusive to FL Studio. When the plugin is dragged around it causes a visual glitch in which the window is duplicated.

My first idea was to check if anything was constantly repainting without a timer and even disabled a lot of repainting calls. This unfortunately did not fix it. It is possible however I wasn’t thorough and a repainting routine is still causing it.

Any ideas would be welcome!

Update: If I select “detach” on the plugin window within FL’s settings it seems to be fine.

hey bro, same issue here. did you find any fixes other than detaching the windows>