Opening Windows in linux with sockets, bare hands and 200 lines of C
2024-05-08
Intro
Open connection
Creating window
Mapping (showing) window
Event loop
Additional Functionality
Open font
Create Graphic Context (GC)
Writing text
Final code
Conclusion
Intro
In this post I want to create a single file C file program to open a windows
inside Linux without using xlib or any similar libraries. The idea is to explore
X11 protocol and see how it is used to interact with X server to create windows.
Before I had strong association that X11 was some magic thing to manipul...
Read more at hereket.com