Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Display *display; display = XOpenDisplay(NULL); Window window; XGetInputFocus(display, &window, RevertToNone);
在 XGetInputFocus 发生分段错误;哪里不对了 ?(程序用 xlib 编译,编译没有任何问题)
int revert; XGetInputFocus(display, &window, &revert);应该修复它。
int revert; XGetInputFocus(display, &window, &revert);