I don't know if you can get an event for this. http://tronche.com/gui/x/xlib/input/XGetInputFocus.html
Warning: XLib programming is not easy. ;-) -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus