Comment Comment by asveikau The code is a little weird. There is no XLib event loop. It calls sleep(100) in a loop until it hits SIGINT. That will have high cpu usage for no reason. parent asveikau 2 years ago