简体   繁体   中英

XCloseDisplay hangs

I'm working on a small self-written window manager, the project is at the very beginning and there are just a few lines of code communicating with the X server. The problem comes at exit: the program hangs when XCloseDisplay is called.

There is no window manager running while testing, the program just initializes some features, gets the screens and the available windows, call XSelectEvent on the default root and prints out the number of windows retrieved. Then it cleans it's internal data and tries to close the connection with the X server.

At that point it hangs until killed.

Solved. The problem was not with X11 but with the compilation process. Some headers were updated but the source file were not. If you have problem like this, remember to delete your object files and build the whole application again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM