1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | Display *display; Atom take_focus_protocol; void main_loop(XEvent *xe) { if (xe->type == ClientMessage) { XClientMessageEvent *xClientEvent = (XClientMessageEvent *)xe; if (xClientEvent->data.l[0] == take_focus_protocol) { XSetInputFocus( display, xClientEvent->window, RevertToParent, xevent->xclient.data.l[1]); } } …… } |
1 | Time time; |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |