When you disable window decorations using _MOTIF_WM_HINTS and then re-enable them, the windows with CSD end up with double decorations CSD + SSD.
_MOTIF_WM_HINTS