I think I found a workaround but not a fix. I need to create a modified version of the functions I call by the menu to avoid the problem.
I'm also aware that this may depend on the graphical server and/or the operating system.
Thanks
So the problem is fixed, and we can close this bug? Or is there still something left to investigate and/or fix?