XdgPopupClient can also be a PlasmaShellSurface
Debugging the panel thumbnails I realised that the setPosition calls didn't have an effect. This is probably not the only way to fix this bug but does fix the bug. At the moment it only brings the position from the interface.