lxdm now can work properly when first time login to lxde.
but when logout, it will never get keyboard focus.
now I use gdk_keyboard_grab to set focus, but won't work after click on other widget.
now only restart X server can fix the problem.
can someone provide some suggestions?