I've noticed many errors in my .xsession-error.log. The main culprit is:

X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  19
  Minor opcode:  0
  Resource id:  0x3600134

The opcode is usually 19 or 20. The errors are mainly caused from gtk applications written in gtkdialog with many other entries being from tdeinit.

[tdeinit] Got EXT_EXEC 'kfmclient' from launcher.
[tdeinit] PID 4739 terminated.

 At the moment i am softlinking .xsession-errors to /dev/null in my environment. An ugly fix.

The log fills quite fast. Is this just bad coding of gtk apps?

Kind Regards,

Jay