Misc fixing; Set _NET_WM_PID on internal X11 windows