The Arduino IDE does not work properly with tiling window managers, because they do some interesting reparenting.
To solve this, add
_JAVA_AWT_WM_NONREPARENTING=1
export _JAVA_AWT_WM_NONREPARENTING
to the start script or your environment.
Credit: "Joost"