you really shouldn't be using X as root, but this applies to normal users as well:
rm -rf ~/.kde
or ~/.gnome or whatever it is you are using. ls -A ~ will show all your hidden files, one of those will be settings for your wm/de. Delete it and it's back to defaults.