Hi, I am new to XLib programming, I want to get the window id of the foreground window(I know windows os offers a api GetForegroundWindow()). Having failed to get a solution by myself after two full day, I find this place and plead for your help. thanks. ______________________________________ 注册新浪2G免费邮箱( http://mail.sina.com.cn/chooseMode.html ) =================================================================== 买HP商用台式机,就赢新年好礼百分百!( http://ad4.sina.com.cn/wx/ads/hpzhuiyu117.html ) _______________________________________________ XFree86 mailing list XFree86@xxxxxxxxxxx http://XFree86.Org/mailman/listinfo/xfree86