Original Post:
I'm working on a C++ UI toolkit that uses XCB. You can see the code for creating a window in the Window::show() function in window.cpp: https://github.com/gsingh93/ui-toolkit
The code is essentially based of off this tutorial: http://www.x.org/releases/X11R7.7/doc/l … index.html
]]>If you're interested in learning about how window managers launch applications, you probably want to read up on fork() and execve(). This is essentially how all processes are created on a Linux system (from init, a shell, window manager, etc.).
Also, if you're interested in learning how window managers work, a good place to start might be tinywm. It's a single C file intended to be the bare minimum to be a window manager. It uses Xlib though, not XCB, but at this point your goal should be to understand the concepts. Somebody out there may have created an XCB version by now, anyway...
]]>I'm trying to learn XCB, but all of the tutorials I've found so far do not explain how can XCB used as a window manager.
I understand how to draw a single window and add a string to it, but how can I launch something from it and show it to the user?
]]>